Better pool rendering

This commit is contained in:
Yohann D'ANELLO 2020-05-23 19:23:57 +02:00
parent b16fe7d68e
commit 522ed088ef
1 changed files with 1 additions and 2 deletions

View File

@ -564,8 +564,7 @@ class PoolListView(LoginRequiredMixin, SingleTableView):
qs = qs.filter(Q(juries=user) | Q(teams__tournament__organizers=user))
elif user.participates:
qs = qs.filter(teams=user.team)
qs = qs.distinct().order_by('solutions__final', 'teams__tournament__date_start', 'teams__tournament__name',
'round',)
qs = qs.distinct().order_by('id')
return qs