From 377397b3190ecefa91d21d43190e907bf11fae47 Mon Sep 17 00:00:00 2001 From: Yohann D'ANELLO Date: Sat, 1 Aug 2020 15:59:39 +0200 Subject: [PATCH] :bug: Fix WEI tables --- apps/note/admin.py | 1 - apps/wei/tables.py | 2 +- templates/wei/weilist_sample.tex | 4 ++-- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/apps/note/admin.py b/apps/note/admin.py index 2d140daf..433ef2dc 100644 --- a/apps/note/admin.py +++ b/apps/note/admin.py @@ -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'] diff --git a/apps/wei/tables.py b/apps/wei/tables.py index a6bc25c6..41c35a47 100644 --- a/apps/wei/tables.py +++ b/apps/wei/tables.py @@ -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): diff --git a/templates/wei/weilist_sample.tex b/templates/wei/weilist_sample.tex index 19eb0cdc..09d3f6be 100644 --- a/templates/wei/weilist_sample.tex +++ b/templates/wei/weilist_sample.tex @@ -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}