From 393ac6bd31074cf6a67048ac9d0f32caa57be61d Mon Sep 17 00:00:00 2001 From: Yohann D'ANELLO Date: Thu, 7 May 2020 11:58:43 +0200 Subject: [PATCH] Distinct solutions --- apps/tournament/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/tournament/views.py b/apps/tournament/views.py index 330dc06..8a40619 100644 --- a/apps/tournament/views.py +++ b/apps/tournament/views.py @@ -327,7 +327,7 @@ class SolutionsOrgaListView(OrgaMixin, SingleTableView): if not self.request.user.admin: qs = qs.filter(Q(team__tournament__organizers=self.request.user) | Q(pools__juries=self.request.user)) return qs.order_by('final', 'team__tournament__date_start', 'team__tournament__name', 'team__trigram', - 'problem',) + 'problem',).distinct() class SynthesesView(TeamMixin, BaseFormView, SingleTableView):