comparison 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
comparison
equal deleted inserted replaced
27:c185fcf5817f 28:a404f93a68d3
59 {{ show.venue.phone }} 59 {{ show.venue.phone }}
60 <br /> 60 <br />
61 {% endif %} 61 {% endif %}
62 {% endif %} 62 {% endif %}
63 63
64 {% if show.bands.all %} 64 {% if show.bands_ %}
65 With: 65 With:
66 {% for band in show.bands.all %} 66 {% for band in show.bands_ %}
67 {% if band.url %} 67 {% if band.url %}
68 <a href="{{ band.url }}" target="_blank">{{ band.name }}</a> 68 <a href="{{ band.url }}" target="_blank">{{ band.name }}</a>
69 {% else %} 69 {% else %}
70 {{ band.name }} 70 {{ band.name }}
71 {% endif %} 71 {% endif %}
132 {% ifnotequal show.venue.city.country.name "USA" %} 132 {% ifnotequal show.venue.city.country.name "USA" %}
133 {{ show.venue.city.country.name }} 133 {{ show.venue.city.country.name }}
134 {% endifnotequal %} 134 {% endifnotequal %}
135 </td> 135 </td>
136 <td width="40%"> 136 <td width="40%">
137 {% for band in show.bands.all %} 137 {% for band in show.bands_ %}
138 {% if band.url %} 138 {% if band.url %}
139 <a href="{{ band.url }}" target="_blank">{{ band.name }}</a> 139 <a href="{{ band.url }}" target="_blank">{{ band.name }}</a>
140 {% else %} 140 {% else %}
141 {{ band.name }} 141 {{ band.name }}
142 {% endif %} 142 {% endif %}