1
0
mirror of https://gitlab.com/animath/si/plateforme.git synced 2025-06-30 14:41:18 +02:00

Auto update Google Sheet after jury management

Signed-off-by: Emmy D'Anello <emmy.danello@animath.fr>
This commit is contained in:
Emmy D'Anello
2024-03-30 15:55:28 +01:00
parent 37ad3cf8a6
commit 3fae6a00dd
2 changed files with 79 additions and 19 deletions

View File

@ -1035,6 +1035,7 @@ class PoolRemoveJuryView(VolunteerMixin, DetailView):
jury = pool.juries.get(pk=kwargs['jury_id'])
pool.juries.remove(jury)
pool.save()
Note.objects.filter(jury=jury, passage__pool=pool).delete()
messages.success(request, _("The jury {name} has been successfully removed!")
.format(name=f"{jury.user.first_name} {jury.user.last_name}"))
return redirect(reverse_lazy('participation:pool_jury', args=(pool.pk,)))