1
0
mirror of https://gitlab.com/animath/si/plateforme.git synced 2025-06-24 11:48:50 +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

@ -166,6 +166,7 @@ class Pool(models.Model):
(1, 'A'),
(2, 'B'),
(3, 'C'),
(4, 'D'),
],
verbose_name=_('letter'),
)
@ -224,6 +225,7 @@ class Pool(models.Model):
self.associated_pool = PPool.objects.create(
tournament=self.round.draw.tournament,
round=self.round.number,
letter=self.letter,
)
self.associated_pool.juries.set(self.round.draw.tournament.organizers.all())
tds = list(self.team_draws)