Total Lines | 8 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | import django_tables2 as tables |
||
7 | class CustomPersonTable(tables.Table): |
||
8 | name = tables.LinkColumn('example-people-detail', args=[A('pk')]) |
||
9 | selection = tables.CheckBoxColumn(accessor='pk') |
||
10 | |||
11 | class Meta: |
||
12 | model = Person |
||
13 | attrs = {"class": "table table-bordered table-condensed"} |
||
14 | fields = ('name', 'email', 'selection') |
||
15 |