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

Display pools table

This commit is contained in:
Yohann D'ANELLO
2021-01-13 16:22:26 +01:00
parent 170326d503
commit 4faec03efb
5 changed files with 48 additions and 3 deletions

View File

@ -307,7 +307,10 @@ class Pool(models.Model):
return Solution.objects.filter(participation__in=self.participations, final_solution=self.tournament.final)
def __str__(self):
return repr(self)
return _("Pool {round} for tournament {tournament} with teams {teams}")\
.format(round=self.round,
tournament=str(self.tournament),
teams=", ".join(participation.team.trigram for participation in self.participations.all()))
class Meta:
verbose_name = _("pool")