示例#1
0
def admin_contact_rotator(request):
    rotators = PicturesProvided.get_rotator_photos(PicturesProvided.TYPE_CONTACT_ROTATOR)
    return {
        'photos': [rotator.photos for rotator in rotators]
    }
示例#2
0
def admin_events_rotator(request):
    rotators = PicturesProvided.get_rotator_photos(PicturesProvided.TYPE_EVENTS_ROTATOR)
    return {"photos": [rotator.photos for rotator in rotators]}
示例#3
0
def admin_about_us_rotator(request):
    rotators = PicturesProvided.get_rotator_photos(PicturesProvided.TYPE_ABOUT_US_ROTATOR)
    return {
        'photos': [rotator.photos for rotator in rotators]
    }
示例#4
0
def admin_location_gallery_edit(request):
    galleries = PicturesProvided.get_rotator_photos(PicturesProvided.TYPE_LOCATION)
    return {
        'photos': [gallery.photos for gallery in galleries]
    }
示例#5
0
def admin_gallery_edit(request):
    galleries = PicturesProvided.get_rotator_photos(PicturesProvided.TYPE_GALLERY)
    return {
        'photos': [gallery.photos for gallery in galleries]
    }
示例#6
0
def admin_booking_rotator(request):
    rotators = PicturesProvided.get_rotator_photos(PicturesProvided.TYPE_BOOKING_ROTATOR)
    return {
        'photos': [rotator.photos for rotator in rotators]
    }