1
0
mirror of https://gitlab.com/animath/si/plateforme.git synced 2025-06-21 07:58:26 +02:00

Send mail to teams that are selected to the final

This commit is contained in:
Yohann D'ANELLO
2020-05-07 17:50:59 +02:00
parent 393ac6bd31
commit 317d9499d0
3 changed files with 34 additions and 0 deletions

View File

@ -177,6 +177,7 @@ 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²")
return redirect('tournament:team_detail', pk=team.pk)
return self.get(request, *args, **kwargs)