1
0
mirror of https://gitlab.com/animath/si/plateforme.git synced 2025-11-15 08:47:42 +01:00

Fix linters + Fix translations

This commit is contained in:
Maxime JUST
2025-11-11 18:50:01 +01:00
parent c8eefb0991
commit 49729485b7
5 changed files with 293 additions and 296 deletions

View File

@@ -70,11 +70,11 @@ class Team(models.Model):
@property
def coaches(self):
return self.participants.filter(coachregistration__isnull=False)
@property
def scientific_coaches(self):
return self.participants.filter(coachregistration__isnull=False, coachregistration__is_scientific_coach=True)
@property
def accompanying_coaches(self):
return self.participants.filter(coachregistration__isnull=False, coachregistration__is_accompanying_coach=True)
@@ -219,7 +219,6 @@ class Team(models.Model):
:return: The mailing list to contact the team members.
"""
return f"equipe-{slugify(self.trigram)}@{settings.SYMPA_HOST}"
def create_mailing_list(self):
"""