add admin decorators
This commit is contained in:
parent
7e875101c9
commit
8cbf4e9e78
@ -2,18 +2,17 @@ from django.contrib import admin
|
|||||||
from .models import *
|
from .models import *
|
||||||
|
|
||||||
|
|
||||||
|
@admin.register(Location)
|
||||||
class LocationAdmin(admin.ModelAdmin):
|
class LocationAdmin(admin.ModelAdmin):
|
||||||
|
list_display = ('name')
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
|
@admin.register(Client)
|
||||||
class ClientAdmin(admin.ModelAdmin):
|
class ClientAdmin(admin.ModelAdmin):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
|
@admin.register(Table)
|
||||||
class TableAdmin(admin.ModelAdmin):
|
class TableAdmin(admin.ModelAdmin):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
admin.site.register(Location, LocationAdmin)
|
|
||||||
admin.site.register(Client, ClientAdmin)
|
|
||||||
admin.site.register(Table, TableAdmin)
|
|
||||||
|
Loading…
Reference in New Issue
Block a user