2015-05-02 15:00:15 +00:00
|
|
|
from django.contrib import admin
|
2016-02-08 08:43:08 +00:00
|
|
|
from .models import Message, Supporter, DGGallery, DGPicture
|
2015-05-02 15:00:15 +00:00
|
|
|
|
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)
|
2015-05-02 15:07:16 +00:00
|
|
|
admin.site.register(Message)
|
2016-02-03 13:27:29 +00:00
|
|
|
admin.site.register(Supporter)
|