1
0
mirror of https://gitlab.com/animath/si/plateforme.git synced 2025-06-23 22:28:51 +02:00

Make Sympa + payment support optional

Signed-off-by: Emmy D'Anello <emmy.danello@animath.fr>
This commit is contained in:
Emmy D'Anello
2024-06-07 16:35:08 +02:00
parent 2a775cedc1
commit c12972b718
10 changed files with 56 additions and 25 deletions

View File

@ -239,7 +239,8 @@ class Team(models.Model):
if not self.access_code:
# if the team got created, generate the access code, create the contact mailing list
self.access_code = get_random_string(6)
self.create_mailing_list()
if settings.ML_MANAGEMENT:
self.create_mailing_list()
return super().save(*args, **kwargs)