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