This commit is contained in:
cuom1999 2022-09-15 02:13:14 -05:00
parent 67ef6b9111
commit 071da74b3d

View file

@ -10,7 +10,7 @@ from judge.jinja2.gravatar import gravatar
from judge.models import Comment, Contest, Organization, Problem, Profile from judge.models import Comment, Contest, Organization, Problem, Profile
def _get_user_queryset(term, org_id): def _get_user_queryset(term, org_id=None):
if org_id: if org_id:
try: try:
qs = Organization.objects.get(id=org_id).members.all() qs = Organization.objects.get(id=org_id).members.all()