mirror of
https://gitlab.com/animath/si/plateforme-corres2math.git
synced 2025-07-04 19:44:05 +02:00
Better video filtering
This commit is contained in:
@ -54,17 +54,19 @@ class ParticipationTable(tables.Table):
|
||||
|
||||
|
||||
class VideoTable(tables.Table):
|
||||
participation_name = tables.LinkColumn(
|
||||
participationname = tables.LinkColumn(
|
||||
'participation:participation_detail',
|
||||
args=[tables.A("participation__pk")],
|
||||
verbose_name=lambda: _("name").capitalize(),
|
||||
accessor="participation__name",
|
||||
)
|
||||
|
||||
def render_participationname(self, record):
|
||||
return record.participation.team.name
|
||||
|
||||
class Meta:
|
||||
attrs = {
|
||||
'class': 'table table condensed table-striped',
|
||||
}
|
||||
model = Team
|
||||
fields = ('participation_name', 'link',)
|
||||
fields = ('participationname', 'link',)
|
||||
template_name = 'django_tables2/bootstrap4.html'
|
||||
|
Reference in New Issue
Block a user