init
This commit is contained in:
commit
4fcbdaa4db
21 changed files with 589 additions and 0 deletions
13
server/admin.py
Normal file
13
server/admin.py
Normal file
|
@ -0,0 +1,13 @@
|
|||
from django.contrib import admin
|
||||
|
||||
from server.models import Dragon
|
||||
|
||||
|
||||
@admin.register(Dragon)
|
||||
class DragonAdmin(admin.ModelAdmin):
|
||||
model = Dragon
|
||||
list_display = ['name', 'origin', 'color', 'hat', 'shirt', 'decor']
|
||||
|
||||
fieldsets = [
|
||||
(None, {'fields': ['name', 'origin', 'color', 'hat', 'shirt', 'decor']}),
|
||||
]
|
Loading…
Add table
Add a link
Reference in a new issue