diff gpp/templates/polls/poll_results.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 2d299909e074
children 88b2b9cb8c1f
line wrap: on
line diff
--- a/gpp/templates/polls/poll_results.html	Mon Jan 17 04:00:59 2011 +0000
+++ b/gpp/templates/polls/poll_results.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 %}Poll Results: {{ poll.question }}{% endblock %}
@@ -28,9 +29,9 @@
 <p class="poll-nav">
 <a href="{{ poll.get_absolute_url }}">Poll Details</a>
 {% if poll.is_open and user.is_authenticated %}
-| <a href="{% url polls.views.poll_vote poll_id=poll.id %}">Vote</a> 
+| <a href="{% url 'polls.views.poll_vote' poll_id=poll.id %}">Vote</a> 
 {% endif %}
-| <a href="{% url polls.views.poll_index %}">Poll Index</a>
+| <a href="{% url 'polls.views.poll_index' %}">Poll Index</a>
 </p>
 
 {% get_comment_count for poll as comment_count %}
@@ -42,6 +43,6 @@
 {% render_comment_form for poll %}
 {% else %}
 <p>Comments are closed for this poll. If you'd like to share your thoughts on this poll 
-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 %}
 {% endblock %}