def admin_contact_rotator(request): rotators = PicturesProvided.get_rotator_photos(PicturesProvided.TYPE_CONTACT_ROTATOR) return { 'photos': [rotator.photos for rotator in rotators] }
def admin_events_rotator(request): rotators = PicturesProvided.get_rotator_photos(PicturesProvided.TYPE_EVENTS_ROTATOR) return {"photos": [rotator.photos for rotator in rotators]}
def admin_about_us_rotator(request): rotators = PicturesProvided.get_rotator_photos(PicturesProvided.TYPE_ABOUT_US_ROTATOR) return { 'photos': [rotator.photos for rotator in rotators] }
def admin_location_gallery_edit(request): galleries = PicturesProvided.get_rotator_photos(PicturesProvided.TYPE_LOCATION) return { 'photos': [gallery.photos for gallery in galleries] }
def admin_gallery_edit(request): galleries = PicturesProvided.get_rotator_photos(PicturesProvided.TYPE_GALLERY) return { 'photos': [gallery.photos for gallery in galleries] }
def admin_booking_rotator(request): rotators = PicturesProvided.get_rotator_photos(PicturesProvided.TYPE_BOOKING_ROTATOR) return { 'photos': [rotator.photos for rotator in rotators] }