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