Skip to content
Snippets Groups Projects
Commit 9dbe7ca6 authored by Tanner Prestegard's avatar Tanner Prestegard Committed by GraceDB
Browse files

bugfix of compile-time database query

parent 7146bfa3
No related branches found
No related tags found
1 merge request!8Superevents
......@@ -22,7 +22,6 @@ from .xmpp import issue_xmpp_alert
import logging
log = logging.getLogger(__name__)
LVC_GROUP = Group.objects.get(name=settings.LVC_GROUP)
def check_recips(recips_qs):
......@@ -30,6 +29,7 @@ def check_recips(recips_qs):
Make sure only internal users are included. Assumes that the queryset's
model has a foreign key to the user object.
"""
LVC_GROUP = Group.objects.get(name=settings.LVC_GROUP)
return recips_qs.filter(user__groups=LVC_GROUP)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment