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

@ -0,0 +1,19 @@
# Generated by Django 4.1.7 on 2023-03-31 15:17
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
("draw", "0007_remove_teamdraw_last_dice_teamdraw_choice_dice_and_more"),
]
operations = [
migrations.AlterField(
model_name="pool",
name="letter",
field=models.PositiveSmallIntegerField(
choices=[(1, "A"), (2, "B"), (3, "C"), (4, "D")], verbose_name="letter"
),
),
]

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)