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:
19
draw/migrations/0008_alter_pool_letter.py
Normal file
19
draw/migrations/0008_alter_pool_letter.py
Normal 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"
|
||||
),
|
||||
),
|
||||
]
|
@ -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)
|
||||
|
Reference in New Issue
Block a user