2017-01-03 19:26:51 +01:00
|
|
|
from django.contrib import admin
|
2017-01-03 19:40:35 +01:00
|
|
|
from .models import *
|
2017-01-03 19:26:51 +01:00
|
|
|
|
2017-01-03 19:40:35 +01:00
|
|
|
|
2017-01-03 19:48:00 +01:00
|
|
|
@admin.register(Location)
|
2017-01-03 19:40:35 +01:00
|
|
|
class LocationAdmin(admin.ModelAdmin):
|
2017-02-01 13:51:15 +01:00
|
|
|
list_display = ('code', 'name', 'city',)
|
2017-02-04 06:51:09 +01:00
|
|
|
fields = ['users', 'code', 'name', 'street', 'plz', 'city', 'phone', 'email', 'url', ]
|
2017-01-03 19:40:35 +01:00
|
|
|
|
|
|
|
|
2017-01-03 19:48:00 +01:00
|
|
|
@admin.register(Client)
|
2017-01-03 19:40:35 +01:00
|
|
|
class ClientAdmin(admin.ModelAdmin):
|
2017-02-01 17:52:16 +01:00
|
|
|
list_display = ('uuid', 'desk1_name', 'desk2_name')
|
|
|
|
fields = ['location', 'uuid', 'desk1_enable', 'desk1_name', 'desk1_prize_nt', 'desk1_prize_ht', 'desk2_enable', 'desk2_name', 'desk2_prize_nt', 'desk2_prize_ht', ]
|
2017-01-06 20:16:21 +01:00
|
|
|
|
|
|
|
|
2017-01-06 20:24:36 +01:00
|
|
|
@admin.register(LocationData)
|
|
|
|
class LocationDataAdmin(admin.ModelAdmin):
|
2017-01-09 18:40:48 +01:00
|
|
|
list_display = ('location_id', 'table_no', 'tst', 'on_off', 'processed', 'error_msg')
|
|
|
|
fields = ['location_id', 'table_no', 'tst', 'on_off', 'processed', 'error_msg']
|
2017-02-01 20:25:33 +01:00
|
|
|
|
|
|
|
|
|
|
|
@admin.register(Accounting)
|
|
|
|
class AccountingAdmin(admin.ModelAdmin):
|
2017-02-05 13:28:41 +01:00
|
|
|
list_display = ('client', 'desk_no', 'time_from', 'time_to', 'prize')
|