diff --git a/judge/views/contests.py b/judge/views/contests.py index c0e8763..99ff7e7 100644 --- a/judge/views/contests.py +++ b/judge/views/contests.py @@ -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