Filter out official contests in contest list

This commit is contained in:
cuom1999 2024-05-30 23:22:38 -05:00
parent 10e50795d9
commit f3a393b767

View file

@ -140,6 +140,8 @@ class ContestListMixin(object):
q = q.filter(official__isnull=False).select_related(
"official", "official__category", "official__location"
)
else:
q = q.filter(official__isnull=True)
return q