1
0
mirror of https://gitlab.com/animath/si/plateforme-corres2math.git synced 2025-08-21 19:27:22 +02:00

Ensure that teams have a participation

This commit is contained in:
Yohann D'ANELLO
2020-11-14 23:43:42 +01:00
parent 10932d1cc5
commit 48b34e4362
2 changed files with 4 additions and 2 deletions

View File

@@ -65,7 +65,7 @@ class Team(models.Model):
"education",
raise_error=False,
)
if self.participation.valid:
if self.pk and self.participation.valid:
get_sympa_client().subscribe(self.email, "equipes", False, f"Equipe {self.name}")
get_sympa_client().subscribe(self.email, f"probleme-{self.participation.problem}", False,
f"Equipe {self.name}")