1
0
mirror of https://gitlab.com/animath/si/plateforme.git synced 2025-06-29 21:11:10 +02:00

Add letter in pool display

Signed-off-by: Emmy D'Anello <emmy.danello@animath.fr>
This commit is contained in:
Emmy D'Anello
2023-03-31 17:23:40 +02:00
parent 14505260ff
commit 0fa76d6f25
8 changed files with 168 additions and 99 deletions

View File

@ -359,6 +359,16 @@ class Pool(models.Model):
]
)
letter = models.PositiveSmallIntegerField(
choices=[
(1, 'A'),
(2, 'B'),
(3, 'C'),
(4, 'D'),
],
verbose_name=_('letter'),
)
participations = models.ManyToManyField(
Participation,
related_name="pools",
@ -406,6 +416,7 @@ class Pool(models.Model):
class Meta:
verbose_name = _("pool")
verbose_name_plural = _("pools")
ordering = ('round', 'letter',)
class Passage(models.Model):