added digital glarus admin

This commit is contained in:
rascencio 2016-02-08 02:43:08 -06:00
parent 2dea158e84
commit 9fafb5afeb

View file

@ -1,5 +1,12 @@
from django.contrib import admin
from .models import Message, Supporter
from .models import Message, Supporter, DGGallery, DGPicture
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)