1
0
mirror of https://gitlab.com/animath/si/plateforme.git synced 2024-12-24 17:42:23 +00:00

Better pool rendering

This commit is contained in:
Yohann D'ANELLO 2020-05-23 19:23:57 +02:00
parent b16fe7d68e
commit 522ed088ef

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