26 lines
560 B
Python
26 lines
560 B
Python
from django.contrib import admin
|
|
from .models import *
|
|
|
|
|
|
@admin.register(Location)
|
|
class LocationAdmin(admin.ModelAdmin):
|
|
list_display = ('name',)
|
|
pass
|
|
|
|
|
|
@admin.register(Client)
|
|
class ClientAdmin(admin.ModelAdmin):
|
|
pass
|
|
|
|
|
|
@admin.register(Table)
|
|
class TableAdmin(admin.ModelAdmin):
|
|
pass
|
|
|
|
|
|
@admin.register(LocationData)
|
|
class LocationDataAdmin(admin.ModelAdmin):
|
|
list_display = ('location_id', 'table_no', 'tst', 'on_off', 'processed', 'error_msg')
|
|
fields = ['location_id', 'table_no', 'tst', 'on_off', 'processed', 'error_msg']
|
|
pass
|