Mercurial > public > sg101
diff gpp/templates/downloads/index.html @ 192:341759e1cda1
Implementing #67: use a denormalized count field on download categories to reduce database queries.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Sat, 03 Apr 2010 01:10:00 +0000 |
parents | dbd703f7d63a |
children | 2baadae33f2e |
line wrap: on
line diff
--- a/gpp/templates/downloads/index.html Thu Apr 01 02:01:33 2010 +0000 +++ b/gpp/templates/downloads/index.html Sat Apr 03 01:10:00 2010 +0000 @@ -14,7 +14,7 @@ {% for category in categories %} <dt> <a href="{% url downloads-category category=category.pk,sort="title",page=1 %}">{{ category.title }}</a> -({{ category.num_downloads }}) +({{ category.count }}) </dt> <dd><p>{{ category.description }}</p></dd> {% endfor %}