1
0
mirror of https://gitlab.com/animath/si/plateforme.git synced 2025-07-04 01:32:11 +02:00

If the tournament is free, then the payment is automatically valid

This commit is contained in:
Yohann D'ANELLO
2021-01-18 21:30:26 +01:00
parent 38dc00b2c9
commit d05a8339fe
5 changed files with 21 additions and 13 deletions

View File

@ -31,7 +31,7 @@ def update_mailing_list(instance: Team, **_):
for student in instance.students.all():
get_sympa_client().subscribe(student.user.email, f"equipe-{instance.trigram.lower()}", False,
f"{student.user.first_name} {student.user.last_name}")
for coach in instance.coachs.all():
for coach in instance.coaches.all():
get_sympa_client().subscribe(coach.user.email, f"equipe-{instance.trigram.lower()}", False,
f"{coach.user.first_name} {coach.user.last_name}")