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

Challenge detail View

This commit is contained in:
Ehouarn
2025-07-09 16:33:05 +02:00
parent c7bd733911
commit 6f4fbecdd0
5 changed files with 95 additions and 2 deletions

View File

@ -30,6 +30,11 @@ class ChallengeTable(tables.Table):
"""
List all challenges
"""
name = tables.LinkColumn(
"family:challenge_detail",
args=[A("pk")],
)
class Meta:
attrs = {
'class': 'table table-condensed table-striped table-hover'
@ -37,4 +42,4 @@ class ChallengeTable(tables.Table):
order_by = ('id',)
model = Challenge
template_name = 'django_tables2/bootstrap4.html'
fields = ('name', 'points', 'category',)
fields = ('name', 'description', 'points',)