1
0
mirror of https://gitlab.com/animath/si/plateforme.git synced 2025-06-21 01:18:22 +02:00

Fix mails to teams that are selected to the final

This commit is contained in:
Yohann D'ANELLO
2020-05-07 19:19:58 +02:00
parent 317d9499d0
commit 4b777d90b5
3 changed files with 6 additions and 5 deletions

View File

@ -177,7 +177,8 @@ class TeamDetailView(LoginRequiredMixin, DetailView):
new_sol.save()
team.selected_for_final = True
team.save()
team.send_mail("select_for_final", "Sélection pour la finale, félicitations ! - TFJM²")
team.send_mail("select_for_final", "Sélection pour la finale, félicitations ! - TFJM²",
final=Tournament.get_final())
return redirect('tournament:team_detail', pk=team.pk)
return self.get(request, *args, **kwargs)