Skip to content
Snippets Groups Projects
Commit 10f7ef40 authored by Pierre-antoine Comby's avatar Pierre-antoine Comby
Browse files

Club list is now clickable

parent 70c5bc06
No related branches found
No related tags found
1 merge request!5App member
Pipeline #7665 passed with stage
in 2 minutes and 49 seconds
#!/usr/bin/env python
import django_tables2 as tables
from .models import Club
class ClubTable(tables.Table):
class Meta:
attrs = {'class':'table table-bordered table-condensed table-striped table-hover'}
model = Club
template_name = 'django_tables2/bootstrap.html'
fields= ('id','name','email')
row_attrs = {'class':'table-row',
'data-href': lambda record: record.pk }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment