mirror of
https://gitlab.com/animath/si/plateforme.git
synced 2025-06-24 02:28:49 +02:00
Test draw application
Signed-off-by: Emmy D'Anello <emmy.danello@animath.fr>
This commit is contained in:
@ -206,6 +206,9 @@ class Round(models.Model):
|
||||
help_text=_("The current pool where teams select their problems."),
|
||||
)
|
||||
|
||||
def get_absolute_url(self):
|
||||
return reverse_lazy('draw:index') + f'#{slugify(self.draw.tournament.name)}'
|
||||
|
||||
@property
|
||||
def team_draws(self) -> QuerySet["TeamDraw"]:
|
||||
"""
|
||||
@ -278,6 +281,9 @@ class Pool(models.Model):
|
||||
help_text=_("The full pool instance."),
|
||||
)
|
||||
|
||||
def get_absolute_url(self):
|
||||
return reverse_lazy('draw:index') + f'#{slugify(self.round.draw.tournament.name)}'
|
||||
|
||||
@property
|
||||
def team_draws(self) -> QuerySet["TeamDraw"]:
|
||||
"""
|
||||
@ -483,6 +489,9 @@ class TeamDraw(models.Model):
|
||||
verbose_name=_('rejected problems'),
|
||||
)
|
||||
|
||||
def get_absolute_url(self):
|
||||
return reverse_lazy('draw:index') + f'#{slugify(self.round.draw.tournament.name)}'
|
||||
|
||||
@property
|
||||
def last_dice(self):
|
||||
"""
|
||||
|
Reference in New Issue
Block a user