add admin decorators
This commit is contained in:
parent
7e875101c9
commit
8cbf4e9e78
@ -2,18 +2,17 @@ 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.site.register(Location, LocationAdmin)
|
||||
admin.site.register(Client, ClientAdmin)
|
||||
admin.site.register(Table, TableAdmin)
|
||||
|
Loading…
Reference in New Issue
Block a user