1
0
mirror of https://gitlab.com/animath/si/plateforme.git synced 2025-07-04 04:12:08 +02:00

Better date render

This commit is contained in:
Yohann D'ANELLO
2020-12-31 12:23:09 +01:00
parent 4e29b4830a
commit 52f0d442cd
3 changed files with 11 additions and 10 deletions

View File

@ -198,6 +198,9 @@ class Tournament(models.Model):
return Synthesis.objects.filter(final_solution=True)
return Synthesis.objects.filter(participation__tournament=self)
def get_absolute_url(self):
return reverse_lazy("participation:tournament_detail", args=(self.pk,))
def __str__(self):
return repr(self)