From bcdbc445c63f7daf05091419f91801d6c769a797 Mon Sep 17 00:00:00 2001 From: Yohann D'ANELLO Date: Fri, 1 Jan 2021 15:41:23 +0100 Subject: [PATCH] Fix the fix sympa lists script --- apps/participation/management/commands/fix_sympa_lists.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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}")