From fbedb941bebd4dedbb1a5d48e96135a3b7f8c895 Mon Sep 17 00:00:00 2001 From: Yohann D'ANELLO Date: Sun, 4 Apr 2021 13:15:00 +0200 Subject: [PATCH] Better pool display --- apps/participation/tables.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/apps/participation/tables.py b/apps/participation/tables.py index af0915a..722f74b 100644 --- a/apps/participation/tables.py +++ b/apps/participation/tables.py @@ -107,20 +107,20 @@ class PassageTable(tables.Table): ) def render_defender(self, value): - return value.team + return value.team.trigram def render_opponent(self, value): - return value.team + return value.team.trigram def render_reporter(self, value): - return value.team + return value.team.trigram class Meta: attrs = { 'class': 'table table-condensed table-striped text-center', } model = Passage - fields = ('defender', 'opponent', 'reporter', 'place',) + fields = ('defender', 'opponent', 'reporter', 'solution_number', 'place',) template_name = 'django_tables2/bootstrap4.html'