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:
@ -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',)
|
Reference in New Issue
Block a user