1
0
mirror of https://gitlab.com/animath/si/plateforme.git synced 2025-08-05 03:03:44 +02:00

Register pools

This commit is contained in:
Yohann D'ANELLO
2021-01-13 17:00:50 +01:00
parent 4faec03efb
commit 4d83664c0d
10 changed files with 91 additions and 12 deletions

View File

@@ -81,12 +81,13 @@ class PoolTable(tables.Table):
teams = tables.LinkColumn(
'participation:pool_detail',
args=[tables.A('id')],
verbose_name=_("teams"),
accessor=None,
verbose_name=_("teams").capitalize,
empty_values=(),
)
def render_teams(self, record):
return ", ".join(participation.team.trigram for participation in record.participations.all())
return ", ".join(participation.team.trigram for participation in record.participations.all()) \
or _("No defined team")
class Meta:
attrs = {