diff gpp/templates/polls/poll.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 dbd703f7d63a
children 1f139de929c4
line wrap: on
line diff
--- a/gpp/templates/polls/poll.html	Mon Jan 17 04:00:59 2011 +0000
+++ b/gpp/templates/polls/poll.html	Thu Jan 20 04:03:48 2011 +0000
@@ -1,4 +1,5 @@
 {% extends 'base.html' %}
+{% load url from future %}
 {% load comment_tags %}
 {% block title %}Polls: {{ poll.question }}{% endblock %}
 {% block content %}
@@ -11,7 +12,7 @@
 </ul>
 {% get_comment_count for poll as comment_count %}
 <p>
-This poll has <a href="{% url polls.views.poll_results poll.id %}">{{ comment_count }} comment{{ comment_count|pluralize }}</a>.
+This poll has <a href="{% url 'polls.views.poll_results' poll.id %}">{{ comment_count }} comment{{ comment_count|pluralize }}</a>.
 {% if poll.is_open %}
 Voting for this poll started on {{ poll.start_date|date:"F d, Y" }}. 
    {% if poll.end_date %}
@@ -22,10 +23,10 @@
 {% endif %}
 </p>
 <p class="poll-nav">
-<a href="{% url polls.views.poll_results poll.id %}">View Results &amp; Comments</a> 
+<a href="{% url 'polls.views.poll_results' poll.id %}">View Results &amp; Comments</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>
 {% endblock %}