carom-server/billard/admin.py

19 lines
302 B
Python
Raw Normal View History

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-01-03 19:50:06 +01:00
list_display = ('name',)
2017-01-03 19:40:35 +01:00
pass
2017-01-03 19:48:00 +01:00
@admin.register(Client)
2017-01-03 19:40:35 +01:00
class ClientAdmin(admin.ModelAdmin):
pass
2017-01-03 19:48:00 +01:00
@admin.register(Table)
2017-01-03 19:40:35 +01:00
class TableAdmin(admin.ModelAdmin):
pass