dynamicweb/digitalglarus/admin.py

13 lines
342 B
Python
Raw Normal View History

from django.contrib import admin
2016-02-08 08:43:08 +00:00
from .models import Message, Supporter, DGGallery, DGPicture
2016-02-08 08:43:08 +00:00
class DGPictureInline(admin.StackedInline):
model = DGPicture
class DGGalleryAdmin(admin.ModelAdmin):
inlines = [DGPictureInline]
admin.site.register(DGGallery, DGGalleryAdmin)
admin.site.register(Message)
admin.site.register(Supporter)