diff gpp/templates/weblinks/link.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 88b2b9cb8c1f
line wrap: on
line diff
--- a/gpp/templates/weblinks/link.html	Mon Jan 17 04:00:59 2011 +0000
+++ b/gpp/templates/weblinks/link.html	Thu Jan 20 04:03:48 2011 +0000
@@ -1,13 +1,14 @@
+{% load url from future %}
 <dt>
 <h4><a href="{{ link.url }}">{{ link.title }}</a></h4>
 </dt>
 <dd>
 <p>{{ link.description }}</p>
-<form action="{% url weblinks-visit link.id %}" method="post">{% csrf_token %}
+<form action="{% url 'weblinks-visit' link.id %}" method="post">{% csrf_token %}
 <table class="link-stats">
    <tr>
-      <th>Added by:</th><td><a href="{% url bio-view_profile link.user.username %}">{{ link.user.username }}</a></td>
-      <th>Category:</th><td><a href="{% url weblinks-view_links slug=link.category.slug sort='date' %}">{{ link.category.title }}</a></td>
+      <th>Added by:</th><td><a href="{% url 'bio-view_profile' link.user.username %}">{{ link.user.username }}</a></td>
+      <th>Category:</th><td><a href="{% url 'weblinks-view_links' slug=link.category.slug sort='date' %}">{{ link.category.title }}</a></td>
    </tr>
    <tr>
       <th>Date Added:</th><td>{{ link.date_added|date:"M d, Y" }}</td>