1
0
mirror of https://gitlab.com/animath/si/plateforme.git synced 2025-06-29 18:31:10 +02:00

Add continue button for the final tournament

Signed-off-by: Emmy D'Anello <emmy.danello@animath.fr>
This commit is contained in:
Emmy D'Anello
2023-03-26 11:08:03 +02:00
parent 1bd9cea458
commit 7d8975339e
6 changed files with 156 additions and 52 deletions

View File

@ -17,7 +17,7 @@ class DisplayView(LoginRequiredMixin, TemplateView):
if reg.is_admin:
tournaments = Tournament.objects.order_by('id').all()
elif reg.is_volunteer:
tournaments = reg.interesting_tournaments.order_by('id').all()
tournaments = reg.interesting_tournaments
else:
tournaments = [reg.team.participation.tournament]
context['tournaments'] = tournaments