Mercurial > public > madeira
diff mysite/templates/band/gigs.html @ 28:a404f93a68d3
Decrease by 2 orders of magnitude the number of queries needed to generate the gigs page for the Madeira.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Thu, 31 Mar 2011 00:14:34 +0000 |
parents | efb2da0b5d10 |
children | 903260593491 |
line wrap: on
line diff
--- a/mysite/templates/band/gigs.html Wed Mar 30 01:19:40 2011 +0000 +++ b/mysite/templates/band/gigs.html Thu Mar 31 00:14:34 2011 +0000 @@ -61,9 +61,9 @@ {% endif %} {% endif %} - {% if show.bands.all %} + {% if show.bands_ %} With: - {% for band in show.bands.all %} + {% for band in show.bands_ %} {% if band.url %} <a href="{{ band.url }}" target="_blank">{{ band.name }}</a> {% else %} @@ -134,7 +134,7 @@ {% endifnotequal %} </td> <td width="40%"> - {% for band in show.bands.all %} + {% for band in show.bands_ %} {% if band.url %} <a href="{{ band.url }}" target="_blank">{{ band.name }}</a> {% else %}