diff gpp/templates/polls/poll_vote.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 6a5549c2efb5
children 88b2b9cb8c1f
line wrap: on
line diff
--- a/gpp/templates/polls/poll_vote.html	Mon Jan 17 04:00:59 2011 +0000
+++ b/gpp/templates/polls/poll_vote.html	Thu Jan 20 04:03:48 2011 +0000
@@ -1,4 +1,5 @@
 {% extends 'base.html' %}
+{% load url from future %}
 {% block title %}Polls: {{ poll.question }}{% endblock %}
 {% block custom_css %}
 <link rel="stylesheet" type="text/css" href="{{ MEDIA_URL }}css/polls.css" />
@@ -14,8 +15,8 @@
 </form>
 <p class="poll-nav">
 <a href="{{ poll.get_absolute_url }}">Poll Details</a>
-| <a href="{% url polls.views.poll_results poll.id %}">View Results</a>
-| <a href="{% url polls.views.poll_index %}">Poll Index</a>
+| <a href="{% url 'polls.views.poll_results' poll.id %}">View Results</a>
+| <a href="{% url 'polls.views.poll_index' %}">Poll Index</a>
 </p>
 <p>This poll was published on {{ poll.start_date|date:"F d, Y" }}.</p>
 {% endblock %}