added digital glarus admin
This commit is contained in:
parent
e4328f94d7
commit
ed08e54a55
1 changed files with 8 additions and 1 deletions
|
@ -1,5 +1,12 @@
|
||||||
from django.contrib import admin
|
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(Message)
|
||||||
admin.site.register(Supporter)
|
admin.site.register(Supporter)
|
||||||
|
|
Loading…
Reference in a new issue