From 70f391420cd0faf9655034c23a03896bc59a6d55 Mon Sep 17 00:00:00 2001 From: Yohann D'ANELLO Date: Wed, 20 May 2020 15:50:44 +0200 Subject: [PATCH] Syntheses are working --- apps/tournament/views.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/apps/tournament/views.py b/apps/tournament/views.py index e3aaeea..e429acf 100644 --- a/apps/tournament/views.py +++ b/apps/tournament/views.py @@ -538,10 +538,12 @@ class SynthesesOrgaListView(OrgaMixin, SingleTableView): qs = super().get_queryset() if not self.request.user.admin: if self.request.user in Tournament.get_final().organizers.all(): - qs = qs.filter(Q(team__tournament__organizers=self.request.user) | Q(pools__juries=self.request.user) + qs = qs.filter(Q(team__tournament__organizers=self.request.user) + | Q(team__pools__juries=self.request.user) | Q(final=True)) else: - qs = qs.filter(Q(team__tournament__organizers=self.request.user) | Q(pools__juries=self.request.user)) + qs = qs.filter(Q(team__tournament__organizers=self.request.user) + | Q(team__pools__juries=self.request.user)) return qs.order_by('final', 'team__tournament__date_start', 'team__tournament__name', 'team__trigram', 'round', 'source',).distinct()