Filter out official contests in contest list
This commit is contained in:
parent
10e50795d9
commit
f3a393b767
1 changed files with 2 additions and 0 deletions
|
@ -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
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue