8f4dd038bd
mmit.
12 lines
342 B
Python
12 lines
342 B
Python
from django.contrib import admin
|
|
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)
|