Better pool display

This commit is contained in:
Yohann D'ANELLO 2021-04-04 13:15:00 +02:00
parent 46e75c7ae8
commit fbedb941be
Signed by: ynerant
GPG Key ID: 3A75C55819C8CF85
1 changed files with 4 additions and 4 deletions

View File

@ -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'