forgot to add admin.py to tree

This commit is contained in:
Sanj 2011-03-06 18:19:58 +05:30
parent b2b512f3be
commit ad4c400bc1

15
itf/app/admin.py Normal file
View 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)