1
0
mirror of https://gitlab.com/animath/si/plateforme.git synced 2025-07-04 12:12:16 +02:00

Add migrations for ETEAM

Signed-off-by: Emmy D'Anello <emmy.danello@animath.fr>
This commit is contained in:
Emmy D'Anello
2024-06-13 10:57:51 +02:00
parent 2c8f6f22f2
commit 2627b3a9b8
5 changed files with 306 additions and 163 deletions

View File

@ -193,7 +193,7 @@ class Round(models.Model):
choices=[
(1, _('Round 1')),
(2, _('Round 2')),
] + ([] if settings.NB_ROUNDS == 2 else [(3, _('Round 3'))]),
(3, _('Round 3'))],
verbose_name=_('number'),
help_text=_("The number of the round, 1 or 2 (or 3 for ETEAM)"),
validators=[MinValueValidator(1), MaxValueValidator(settings.NB_ROUNDS)],