forgot boxes/admin.py
This commit is contained in:
parent
8ec2c0a041
commit
61803263f0
24
itf/boxes/admin.py
Normal file
24
itf/boxes/admin.py
Normal file
|
@ -0,0 +1,24 @@
|
||||||
|
from django.contrib import admin
|
||||||
|
from models import ModelExtra, ModelSort, DialogButton, StaticDownloadButton, ModelDownloadButton, ExtraButton, PanelBoxes, StaticBox, ModelsBox, Panel
|
||||||
|
|
||||||
|
'''
|
||||||
|
class ButtonsInline(admin.StackedInline):
|
||||||
|
model = ModelExtraButton
|
||||||
|
extra = 2
|
||||||
|
|
||||||
|
|
||||||
|
class ModelBoxAdmin(admin.ModelAdmin):
|
||||||
|
inlines = [ButtonsInline]
|
||||||
|
'''
|
||||||
|
|
||||||
|
#admin.site.register(ModelBox, ModelBoxAdmin)
|
||||||
|
admin.site.register(ModelExtra)
|
||||||
|
admin.site.register(ModelSort)
|
||||||
|
admin.site.register(DialogButton)
|
||||||
|
admin.site.register(StaticDownloadButton)
|
||||||
|
admin.site.register(ModelDownloadButton)
|
||||||
|
admin.site.register(ExtraButton)
|
||||||
|
admin.site.register(PanelBoxes)
|
||||||
|
admin.site.register(StaticBox)
|
||||||
|
admin.site.register(ModelsBox)
|
||||||
|
admin.site.register(Panel)
|
Loading…
Reference in New Issue
Block a user