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:
@@ -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}")
|
||||
|
Reference in New Issue
Block a user