mirror of
https://gitlab.com/animath/si/plateforme.git
synced 2025-05-02 06:11:33 +00:00
On n'affiche pas les paiements pour la finale sur la liste des paiements d'un tournoi régional
This commit is contained in:
parent
60f5236dee
commit
203fc3cd54
@ -672,7 +672,7 @@ class TournamentPaymentsView(VolunteerMixin, SingleTableMixin, DetailView):
|
|||||||
if self.object.final:
|
if self.object.final:
|
||||||
payments = Payment.objects.filter(final=True)
|
payments = Payment.objects.filter(final=True)
|
||||||
else:
|
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') \
|
return payments.annotate(team_id=F('registrations__team')).order_by('-valid', 'registrations__team__trigram') \
|
||||||
.distinct().all()
|
.distinct().all()
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user