Mercurial > public > sg101
comparison gpp/templates/news/archive_index.html @ 197:2baadae33f2e
Got autocomplete working for the member search. Updated django and ran into a bug where url tags with comma separated kwargs starting consuming tons of CPU throughput. The work-around is to cut over to using spaces between arguments. This is now allowed to be consistent with other tags. Did some query optimization for the news app.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Sat, 10 Apr 2010 04:32:24 +0000 |
parents | dbd703f7d63a |
children | 1246a4f1ab4f |
comparison
equal
deleted
inserted
replaced
196:893b6d462cf9 | 197:2baadae33f2e |
---|---|
8 </p> | 8 </p> |
9 | 9 |
10 {% if dates %} | 10 {% if dates %} |
11 <ul> | 11 <ul> |
12 {% for date in dates %} | 12 {% for date in dates %} |
13 <li><a href="{% url news-archive_page year=date.year,month=date.month,page=1 %}"> | 13 <li><a href="{% url news-archive_page year=date.year month=date.month page=1 %}"> |
14 {{ date|date:"F, Y" }}</a></li> | 14 {{ date|date:"F, Y" }}</a></li> |
15 {% endfor %} | 15 {% endfor %} |
16 </ul> | 16 </ul> |
17 {% else %} | 17 {% else %} |
18 <p>No archives at this time.</p> | 18 <p>No archives at this time.</p> |