2015-05-02 15:00:15 +00:00
|
|
|
from django.contrib import admin
|
2016-09-09 04:24:52 +00:00
|
|
|
from .models import Supporter, DGGallery, DGPicture, Booking, BookingPrice,\
|
|
|
|
MembershipOrder, Membership, MembershipType, BookingOrder
|
|
|
|
|
2016-04-10 21:12:43 +00:00
|
|
|
from utils.models import ContactMessage
|
2016-03-25 18:18:07 +00:00
|
|
|
#
|
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)
|
2016-04-10 21:12:43 +00:00
|
|
|
admin.site.register(ContactMessage)
|
2016-09-09 04:24:52 +00:00
|
|
|
admin.site.register(Booking)
|
|
|
|
admin.site.register(BookingPrice)
|
|
|
|
admin.site.register(MembershipOrder)
|
|
|
|
admin.site.register(Membership)
|
|
|
|
admin.site.register(MembershipType)
|
|
|
|
admin.site.register(BookingOrder)
|