diff --git a/apps/participation/management/commands/fix_sympa_lists.py b/apps/participation/management/commands/fix_sympa_lists.py index 9b335e7..ff0c1f0 100644 --- a/apps/participation/management/commands/fix_sympa_lists.py +++ b/apps/participation/management/commands/fix_sympa_lists.py @@ -38,6 +38,6 @@ class Command(BaseCommand): sympa.subscribe(team.email, "equipes-non-valides", f"Equipe {team.name}", True) for student in StudentRegistration.objects.filter(team__isnull=False).all(): - sympa.subscribe(student.user.email, f"equipe-{student.team.trigram.lower}", True, f"{student}") + sympa.subscribe(student.user.email, f"equipe-{student.team.trigram.lower()}", True, f"{student}") for coach in CoachRegistration.objects.filter(team__isnull=False).all(): - sympa.subscribe(coach.user.email, f"equipe-{coach.team.trigram.lower}", True, f"{coach}") + sympa.subscribe(coach.user.email, f"equipe-{coach.team.trigram.lower()}", True, f"{coach}")