1
0
mirror of https://gitlab.com/animath/si/plateforme.git synced 2025-07-03 14:42:49 +02:00

Display details about tournaments

This commit is contained in:
Yohann D'ANELLO
2021-01-01 12:11:09 +01:00
parent bf6f87ee89
commit 0f65bc4561
9 changed files with 152 additions and 14 deletions

View File

@ -16,17 +16,12 @@ class TeamTable(tables.Table):
verbose_name=lambda: _("name").capitalize(),
)
problem = tables.Column(
accessor="participation__problem",
verbose_name=lambda: _("problem number").capitalize(),
)
class Meta:
attrs = {
'class': 'table table condensed table-striped',
}
model = Team
fields = ('name', 'trigram', 'problem',)
fields = ('name', 'trigram',)
template_name = 'django_tables2/bootstrap4.html'
@ -44,16 +39,12 @@ class ParticipationTable(tables.Table):
accessor="team__trigram",
)
problem = tables.Column(
verbose_name=lambda: _("problem number").capitalize(),
)
class Meta:
attrs = {
'class': 'table table condensed table-striped',
}
model = Team
fields = ('name', 'trigram', 'problem',)
fields = ('name', 'trigram', 'valid',)
template_name = 'django_tables2/bootstrap4.html'