diff gpp/templates/contact/contact_form.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
line wrap: on
line diff
--- a/gpp/templates/contact/contact_form.html	Mon Jan 17 04:00:59 2011 +0000
+++ b/gpp/templates/contact/contact_form.html	Thu Jan 20 04:03:48 2011 +0000
@@ -1,10 +1,11 @@
 {% extends 'base.html' %}
+{% load url from future %}
 {% block title %}Contact{% endblock %}
 {% block content %}
 <h2>Contact Us</h2>
 <p>Please use the following form to contact the site management. Your feedback and comments are very
 important to us.</p>
-<form action="{% url contact.views.contact_form %}" method="post">{% csrf_token %}
+<form action="{% url 'contact.views.contact_form' %}" method="post">{% csrf_token %}
 <table>
    <tr><th>{{ form.name.label }}:</th><td>{{ form.name.errors }}{{ form.name }}</td></tr>
    <tr><th>{{ form.email.label }}:</th><td>{{ form.email.errors }}{{ form.email }}</td></tr>