diff mysite/templates/band/photo_detail.html @ 29:f61db5f82549

When displaying photos, display by id, ascending.
author Brian Neal <bgneal@gmail.com>
date Tue, 05 Apr 2011 23:05:55 +0000
parents efb2da0b5d10
children 25e00d1b99bf
line wrap: on
line diff
--- a/mysite/templates/band/photo_detail.html	Thu Mar 31 00:14:34 2011 +0000
+++ b/mysite/templates/band/photo_detail.html	Tue Apr 05 23:05:55 2011 +0000
@@ -19,7 +19,7 @@
 {{ gallery.description|textile }}
 
 <div class="madeira-photo-list">
-{% for photo in gallery.photos.all %}
+{% for photo in photos %}
    <a href="{{ photo.image.url }}" class="fancybox" rel="madeira-gallery">
       <img src="{{ photo.get_thumbnail_url }}" alt="{{ photo.caption }}" title="{{ photo.caption }}" /></a>
 {% endfor %}