Mercurial > public > sg101
comparison gpp/templates/news/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 |
---|---|
1 {% extends 'news/base.html' %} | 1 {% extends 'news/base.html' %} |
2 {% load tagging_tags %} | |
3 {% block title %}News: {{ title }}{% endblock %} | 2 {% block title %}News: {{ title }}{% endblock %} |
4 {% block news_css %} | 3 {% block news_css %} |
5 <link rel="stylesheet" type="text/css" href="{{ MEDIA_URL }}css/pagination.css" /> | 4 <link rel="stylesheet" type="text/css" href="{{ MEDIA_URL }}css/pagination.css" /> |
6 {% endblock %} | 5 {% endblock %} |
7 {% block news_content %} | 6 {% block news_content %} |
13 {% include 'core/pagination.html' %} | 12 {% include 'core/pagination.html' %} |
14 {% endif %} | 13 {% endif %} |
15 | 14 |
16 {% if page.object_list %} | 15 {% if page.object_list %} |
17 {% for story in page.object_list %} | 16 {% for story in page.object_list %} |
18 {% tags_for_object story as story_tags %} | |
19 {% include 'news/story_summary.html' %} | 17 {% include 'news/story_summary.html' %} |
20 {% endfor %} | 18 {% endfor %} |
21 <div style="clear:right;"></div> | 19 <div style="clear:right;"></div> |
22 {% else %} | 20 {% else %} |
23 {% if query %} | 21 {% if query %} |