diff gpp/templates/weblinks/index.html @ 193:fa7d82bfb100

Implement #68: add a denormalized count field to weblinks Category model to reduce database queries.
author Brian Neal <bgneal@gmail.com>
date Sat, 03 Apr 2010 02:15:04 +0000
parents dbd703f7d63a
children 2baadae33f2e
line wrap: on
line diff
--- a/gpp/templates/weblinks/index.html	Sat Apr 03 01:10:00 2010 +0000
+++ b/gpp/templates/weblinks/index.html	Sat Apr 03 02:15:04 2010 +0000
@@ -7,7 +7,7 @@
       <dl>
       {% for category in categories %}
       <dt><a href="{% url weblinks-view_links category=category.id,sort="title",page=1 %}">{{ category.title }}</a>
-       ({{ category.num_links}})</dt>
+       ({{ category.count }})</dt>
          <dd><p>{{ category.description }}</p></dd>
       {% endfor %}
       </dl>