🐛 Fix WEI tables

This commit is contained in:
Yohann D'ANELLO 2020-08-01 15:59:39 +02:00
parent 1abb40953f
commit 377397b319
3 changed files with 3 additions and 4 deletions

View File

@ -38,7 +38,6 @@ class NoteAdmin(PolymorphicParentModelAdmin):
# Organize notes by registration date
date_hierarchy = 'created_at'
ordering = ['name']
# Search by aliases
search_fields = ['alias__name']

View File

@ -103,7 +103,7 @@ class WEIMembershipTable(tables.Table):
team = tables.LinkColumn(
'wei:manage_bus_team',
args=[A('bus.pk')],
args=[A('team.pk')],
)
def render_year(self, record):

View File

@ -14,11 +14,11 @@
\huge{Liste des inscrits \og {{ wei.name }} \fg{}}
{% if bus %}
\LARGE{Bus {{ bus.name }}}
\LARGE{Bus {{ bus.name|safe }}}
{% if team %}
\Large{Équipe {{ team.name }}}
\Large{Équipe {{ team.name|safe }}}
{% endif %}
{% endif %}
\end{center}