mirror of
https://gitlab.com/animath/si/plateforme.git
synced 2024-12-25 19:02:33 +00:00
Better pool display
This commit is contained in:
parent
46e75c7ae8
commit
fbedb941be
@ -107,20 +107,20 @@ class PassageTable(tables.Table):
|
|||||||
)
|
)
|
||||||
|
|
||||||
def render_defender(self, value):
|
def render_defender(self, value):
|
||||||
return value.team
|
return value.team.trigram
|
||||||
|
|
||||||
def render_opponent(self, value):
|
def render_opponent(self, value):
|
||||||
return value.team
|
return value.team.trigram
|
||||||
|
|
||||||
def render_reporter(self, value):
|
def render_reporter(self, value):
|
||||||
return value.team
|
return value.team.trigram
|
||||||
|
|
||||||
class Meta:
|
class Meta:
|
||||||
attrs = {
|
attrs = {
|
||||||
'class': 'table table-condensed table-striped text-center',
|
'class': 'table table-condensed table-striped text-center',
|
||||||
}
|
}
|
||||||
model = Passage
|
model = Passage
|
||||||
fields = ('defender', 'opponent', 'reporter', 'place',)
|
fields = ('defender', 'opponent', 'reporter', 'solution_number', 'place',)
|
||||||
template_name = 'django_tables2/bootstrap4.html'
|
template_name = 'django_tables2/bootstrap4.html'
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user