Completed
Push — master ( 8dc019...56a192 )
by Asif
27s
created

  A

Complexity

Total Complexity 0

Size/Duplication

Total Lines 8
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 0
c 0
b 0
f 0
dl 0
loc 8
rs 10
1
import django_tables2 as tables
2
from django_tables2.utils import A
3
4
from .models import Person
5
6
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