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

Send email after team final selection

Signed-off-by: Emmy D'Anello <emmy.danello@animath.fr>
This commit is contained in:
Emmy D'Anello
2024-04-07 13:39:44 +02:00
parent 7073f64aa6
commit 7a0b93b151
5 changed files with 249 additions and 104 deletions

View File

@ -856,6 +856,8 @@ class SelectTeamFinalView(VolunteerMixin, DetailView):
final_sol: Solution
with open(regional_sol.file.path, 'rb') as f:
final_sol.file.save(regional_sol.file.name, f)
for registration in self.participation.team.participants:
registration.send_email_final_selection()
return redirect(reverse_lazy("participation:tournament_detail", args=(tournament.pk,)))