dynamicweb/digitalglarus/admin.py

13 lines
380 B
Python
Raw Normal View History

from django.contrib import admin
from .models import Supporter, DGGallery, DGPicture
from utils.models import ContactMessage
#
2016-04-01 10:37:01 +00:00
class DGPictureInline(admin.StackedInline):
model = DGPicture
class DGGalleryAdmin(admin.ModelAdmin):
inlines = [DGPictureInline]
admin.site.register(DGGallery, DGGalleryAdmin)
admin.site.register(ContactMessage)
2016-04-01 10:37:01 +00:00
admin.site.register(Supporter)