27 lines
511 B
Python
27 lines
511 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',)
|
|
fields = ['location_id', 'table_no', 'tst', 'on_off',]
|
|
pass
|
|
|