Fix final selection

Signed-off-by: Emmy D'Anello <emmy.danello@animath.fr>
This commit is contained in:
Emmy D'Anello 2024-04-07 18:30:06 +02:00
parent 4a094002f0
commit 6c76f1e633
Signed by: ynerant
GPG Key ID: 3A75C55819C8CF85
1 changed files with 1 additions and 1 deletions

View File

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