|
Photo
The Photologue Photo model is a default implementation of the ImageModel abstract class. If work with the Gallery model and included templates to provide an out-of-the-box photo gallery solution. MethodsCommonly used public methods include: get_previous_in_galleryReturns the previous photo in a specific gallery by date. Usage: mygallery = Gallery.objects.get(title="My Gallery")
myphoto.get_previous_in_gallery(mygallery)Arguments:galleryA gallery object. get_next_in_galleryReturns the next photo in a specific gallery by date. Usage: mygallery = Gallery.objects.get(title="My Gallery")
myphoto.get_next_in_gallery(mygallery)Arguments:galleryA gallery object. public_galleriesReturns a queryset containing all "public" galleries this photo is assigned to. Usage:myphoto.public_galleries() |
► Sign in to add a comment
How can i use Photo() on a django form?