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