Fix active contest list
This commit is contained in:
parent
9f4ae9f78f
commit
829e6a802d
1 changed files with 5 additions and 1 deletions
|
@ -247,7 +247,11 @@ class ContestList(
|
||||||
|
|
||||||
@cached_property
|
@cached_property
|
||||||
def _active_contests_ids(self):
|
def _active_contests_ids(self):
|
||||||
return self._active_participations().values_list("contest_id", flat=True)
|
return [
|
||||||
|
participation.contest_id
|
||||||
|
for participation in self._active_participations().select_related("contest")
|
||||||
|
if not participation.ended
|
||||||
|
]
|
||||||
|
|
||||||
def _get_current_contests_queryset(self):
|
def _get_current_contests_queryset(self):
|
||||||
return (
|
return (
|
||||||
|
|
Loading…
Reference in a new issue