From ecbbe46420656a74a59fc5c9462796c023c12313 Mon Sep 17 00:00:00 2001 From: Yohann D'ANELLO Date: Tue, 5 May 2020 13:32:48 +0200 Subject: [PATCH] Fix pools for organizers, broken links --- 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 c46b08a..9a50449 100644 --- a/apps/tournament/views.py +++ b/apps/tournament/views.py @@ -447,7 +447,7 @@ class PoolDetailView(LoginRequiredMixin, DetailView): qs = super().get_queryset() user = self.request.user if not user.admin and user.organizes: - qs = qs.filter(Q(juries=user) | Q(solutions__tournament__organizers=user)) + qs = qs.filter(Q(juries=user) | Q(teams__tournament__organizers=user)) elif user.participates: qs = qs.filter(teams=user.team) return qs.distinct()