diff gpp/templates/potd/view.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 ded03f2513e9
children 88b2b9cb8c1f
line wrap: on
line diff
--- a/gpp/templates/potd/view.html	Mon Jan 17 04:00:59 2011 +0000
+++ b/gpp/templates/potd/view.html	Thu Jan 20 04:03:48 2011 +0000
@@ -1,4 +1,5 @@
 {% extends 'base.html' %}
+{% load url from future %}
 {% load comment_tags %}
 {% load script_tags %}
 {% block title %}Photo Of The Day{% endblock %}
@@ -23,7 +24,7 @@
 <p class="caption">{{ potd.caption }}</p>
 <p class="details">
 Submitted by 
-<a href="{% url bio-view_profile username=potd.user.username %}">{{ potd.user.username }}</a>
+<a href="{% url 'bio-view_profile' username=potd.user.username %}">{{ potd.user.username }}</a>
 on {{ potd.date_added|date:"d F Y" }}.<br />
 This photo has been Photo of the Day {{ potd.potd_count }} time{{ potd.potd_count|pluralize }}.
 </p>
@@ -43,7 +44,7 @@
 <br />
 {% else %}
 <p>Comments are allowed only on today's photo of the day. If you'd like to share your thoughts on this photo 
-with the site staff, you can <a href="{% url contact-form %}">contact us directly</a>.</p>
+with the site staff, you can <a href="{% url 'contact-form' %}">contact us directly</a>.</p>
 {% endif %}
 {% else %}
 <p>We're sorry, there doesn't seem to be a photo of the day right now.</p>