1
0
mirror of https://gitlab.com/animath/si/plateforme-corres2math.git synced 2025-08-21 16:47:22 +02:00

Fix video table

This commit is contained in:
Yohann D'ANELLO
2020-11-03 15:33:25 +01:00
parent aed9f457c3
commit 52763cb75a
2 changed files with 15 additions and 6 deletions

View File

@@ -72,19 +72,17 @@ class ParticipationTable(tables.Table):
class VideoTable(tables.Table):
participationname = tables.LinkColumn(
participation_name = tables.LinkColumn(
'participation:participation_detail',
args=[tables.A("participation__pk")],
verbose_name=lambda: _("name").capitalize(),
accessor=tables.A("participation__team__name"),
)
def render_participationname(self, record):
return record.participation.team.name
class Meta:
attrs = {
'class': 'table table condensed table-striped',
}
model = Team
fields = ('participationname', 'link',)
fields = ('participation_name', 'link',)
template_name = 'django_tables2/bootstrap4.html'