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