The Gallery functions latest() and sample have options to display a finite
number of photos, but it is only accessible via view functions
It would be nice to be able to have a setting that would limit this so a
call in a template would yield only this number of images
GALLERY_LATEST_LIMIT = 10
{% for image in mygallery.latest %}
<div> {{ image }} </div> x 5
This would result in less code in view function as well as fewer items
being loaded into memory for each gallery
Then you could use the standard objects.all() to get all of the images or
something to that effect
Original issue reported on code.google.com by e3satter...@gmail.com on 10 Feb 2009 at 5:27
Original issue reported on code.google.com by
e3satter...@gmail.com
on 10 Feb 2009 at 5:27