Example #1
0
def admin_contact_rotator(request):
    rotators = PicturesProvided.get_rotator_photos(PicturesProvided.TYPE_CONTACT_ROTATOR)
    return {
        'photos': [rotator.photos for rotator in rotators]
    }
Example #2
0
def admin_events_rotator(request):
    rotators = PicturesProvided.get_rotator_photos(PicturesProvided.TYPE_EVENTS_ROTATOR)
    return {"photos": [rotator.photos for rotator in rotators]}
Example #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]
    }
Example #4
0
def admin_location_gallery_edit(request):
    galleries = PicturesProvided.get_rotator_photos(PicturesProvided.TYPE_LOCATION)
    return {
        'photos': [gallery.photos for gallery in galleries]
    }
Example #5
0
def admin_gallery_edit(request):
    galleries = PicturesProvided.get_rotator_photos(PicturesProvided.TYPE_GALLERY)
    return {
        'photos': [gallery.photos for gallery in galleries]
    }
Example #6
0
def admin_booking_rotator(request):
    rotators = PicturesProvided.get_rotator_photos(PicturesProvided.TYPE_BOOKING_ROTATOR)
    return {
        'photos': [rotator.photos for rotator in rotators]
    }