1
0
mirror of https://gitlab.crans.org/bde/nk20 synced 2025-07-21 08:29:11 +02:00

Ajout des défis réalisés par une famille

This commit is contained in:
ikea
2025-07-19 00:52:10 +02:00
parent 9e700fd3de
commit ea8fcad8b5
3 changed files with 29 additions and 1 deletions

View File

@ -90,3 +90,16 @@ class AchievementTable(tables.Table):
fields = ('family', 'challenge', 'challenge__points', 'obtained_at', )
template_name = 'django_tables2/bootstrap4.html'
order_by = ('-obtained_at',)
class FamilyAchievementTable(tables.Table):
"""
Table des défis réalisés par une famille spécifique.
"""
class Meta:
model = Achievement
template_name = 'django_tables2/bootstrap4.html'
fields = ('challenge', 'challenge__points', 'obtained_at',)
attrs = {
'class': 'table table-condensed table-striped table-hover'
}
order_by = ('-obtained_at',)