From 522ed088ef7830840f7b16f2ce57ea5d27484f80 Mon Sep 17 00:00:00 2001 From: Yohann D'ANELLO Date: Sat, 23 May 2020 19:23:57 +0200 Subject: [PATCH] Better pool rendering --- apps/tournament/views.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/apps/tournament/views.py b/apps/tournament/views.py index 1b20ff4..97f877a 100644 --- a/apps/tournament/views.py +++ b/apps/tournament/views.py @@ -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