1
0
mirror of https://gitlab.com/animath/si/plateforme.git synced 2025-06-22 07:18:25 +02:00

Better pool view for 5-teams pools

Signed-off-by: Emmy D'Anello <emmy.danello@animath.fr>
This commit is contained in:
Emmy D'Anello
2024-04-18 15:05:10 +02:00
parent 266afaf5c9
commit adc4634f3e
3 changed files with 95 additions and 95 deletions

View File

@ -1420,8 +1420,8 @@ class Pool(models.Model):
note.save()
def __str__(self):
return _("Pool of day {round} for tournament {tournament} with teams {teams}")\
.format(round=self.round,
return _("Pool {code} for tournament {tournament} with teams {teams}")\
.format(code=self.short_name,
tournament=str(self.tournament),
teams=", ".join(participation.team.trigram for participation in self.participations.all()))

View File

@ -632,7 +632,7 @@ class TournamentDetailView(MultiTableMixin, DetailView):
def get_tables(self):
return [
ParticipationTable(self.object.participations.all()),
PoolTable(self.object.pools.order_by('id').all()),
PoolTable(self.object.pools.all()),
]