From 203fc3cd54954e386552ad0d8d542fb7a4b4e1aa Mon Sep 17 00:00:00 2001 From: Emmy D'Anello Date: Mon, 28 Apr 2025 20:43:36 +0200 Subject: [PATCH] =?UTF-8?q?On=20n'affiche=20pas=20les=20paiements=20pour?= =?UTF-8?q?=20la=20finale=20sur=20la=20liste=20des=20paiements=20d'un=20to?= =?UTF-8?q?urnoi=20r=C3=A9gional?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- participation/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/participation/views.py b/participation/views.py index ceaf3f6..8e5ff4e 100644 --- a/participation/views.py +++ b/participation/views.py @@ -672,7 +672,7 @@ class TournamentPaymentsView(VolunteerMixin, SingleTableMixin, DetailView): if self.object.final: payments = Payment.objects.filter(final=True) else: - payments = Payment.objects.filter(registrations__team__participation__tournament=self.get_object()) + payments = Payment.objects.filter(registrations__team__participation__tournament=self.get_object(), final=False) return payments.annotate(team_id=F('registrations__team')).order_by('-valid', 'registrations__team__trigram') \ .distinct().all()