23 lines
668 B
Python
23 lines
668 B
Python
import django_tables2 as tables
|
|
|
|
from .models import Location
|
|
|
|
|
|
class LocationTable(tables.Table):
|
|
code = tables.TemplateColumn(template_name='billard/tc_location_detail.html')
|
|
|
|
class Meta:
|
|
model = Location
|
|
fields = ('code', 'name', 'street', 'plz', 'city')
|
|
orderable = False
|
|
|
|
|
|
class LocationAccountingTable(tables.Table):
|
|
code = tables.TemplateColumn(template_name='billard/tc_location_detail.html')
|
|
accounting = tables.TemplateColumn(template_name='billard/tc_accounting_detail.html')
|
|
|
|
class Meta:
|
|
model = Location
|
|
fields = ('code', 'name', 'street', 'plz', 'city', 'accounting')
|
|
orderable = False
|