diff gpp/templates/weblinks/index.html @ 310:daa2916f5b34

Fixing 145; New url tag behavior (forwards compatibility) in Django 1.3.
author Brian Neal <bgneal@gmail.com>
date Thu, 20 Jan 2011 04:03:48 +0000
parents 7e8d2dda99e3
children
line wrap: on
line diff
--- a/gpp/templates/weblinks/index.html	Mon Jan 17 04:00:59 2011 +0000
+++ b/gpp/templates/weblinks/index.html	Thu Jan 20 04:03:48 2011 +0000
@@ -1,4 +1,5 @@
 {% extends 'weblinks/base.html' %}
+{% load url from future %}
 {% block title %}Web Links{% endblock %}
 {% block weblinks_content %}
    <h3>Categories</h3>
@@ -6,7 +7,7 @@
       <p>We have {{ total_links }} links in {{ categories.count }} categories.</p>
       <dl>
       {% for category in categories %}
-      <dt><a href="{% url weblinks-view_links slug=category.slug sort="title" %}">{{ category.title }}</a>
+      <dt><a href="{% url 'weblinks-view_links' slug=category.slug sort="title" %}">{{ category.title }}</a>
        ({{ category.count }})</dt>
          <dd><p>{{ category.description }}</p></dd>
       {% endfor %}