mirror of
https://gitlab.com/animath/si/plateforme.git
synced 2025-11-29 04:00:06 +01:00
Fix linters + Fix translations
This commit is contained in:
@@ -80,13 +80,17 @@ class ParticipationForm(forms.ModelForm):
|
||||
if settings.SINGLE_TOURNAMENT:
|
||||
del self.fields['tournament']
|
||||
self.helper = FormHelper()
|
||||
idf_text = _(
|
||||
'For the tournaments in the region "Île-de-France": registration is '
|
||||
'unified for each tournament. By choosing a tournament "Île-de-France", '
|
||||
"you're accepting that your team may be selected for one of these tournaments. "
|
||||
'In case of date conflict, please write them in your motivation letter.'
|
||||
)
|
||||
|
||||
idf_warning_banner = f"""
|
||||
<div class=\"alert alert-warning\">
|
||||
<h5 class=\"alert-heading\">{_("IMPORTANT")}</h4>
|
||||
{_("""For the tournaments in the region "Île-de-France": registration is
|
||||
unified for each tournament. By choosing a tournament "Île-de-France",
|
||||
you're accepting that your team may be selected for one of these tournaments.
|
||||
In case of date conflict, please write them in your motivation letter.""")}
|
||||
{idf_text}
|
||||
</div>
|
||||
"""
|
||||
unified_registration_tournament_ids = ",".join(
|
||||
|
||||
@@ -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):
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user