From f3a393b7677ef805f2efeb263bd722708277b9cd Mon Sep 17 00:00:00 2001 From: cuom1999 Date: Thu, 30 May 2024 23:22:38 -0500 Subject: [PATCH] Filter out official contests in contest list --- judge/views/contests.py | 2 ++ 1 file changed, 2 insertions(+) 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