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:
@ -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()))
|
||||
|
||||
|
@ -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()),
|
||||
]
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user