forgot to add admin.py to tree
This commit is contained in:
parent
b2b512f3be
commit
ad4c400bc1
15
itf/app/admin.py
Normal file
15
itf/app/admin.py
Normal file
|
@ -0,0 +1,15 @@
|
||||||
|
from django.contrib import admin
|
||||||
|
from models import ModelsModel, ModelSort, ModelExtraButton
|
||||||
|
|
||||||
|
class ButtonsInline(admin.StackedInline):
|
||||||
|
model = ModelExtraButton
|
||||||
|
extra = 2
|
||||||
|
|
||||||
|
|
||||||
|
class ModelsModelAdmin(admin.ModelAdmin):
|
||||||
|
inlines = [ButtonsInline]
|
||||||
|
|
||||||
|
|
||||||
|
admin.site.register(ModelsModel, ModelsModelAdmin)
|
||||||
|
admin.site.register(ModelSort)
|
||||||
|
admin.site.register(ModelExtraButton)
|
Loading…
Reference in New Issue
Block a user