From 82f3333bc7490e6a90a583dec8cc26a54d2671df Mon Sep 17 00:00:00 2001 From: Luke Plant Date: Sat, 4 Jun 2011 21:51:13 +0000 Subject: [PATCH] Reverted most of [16051], because it was thoroughly incorrect (whatever some validator says) Refs #16154 git-svn-id: http://code.djangoproject.com/svn/django/trunk@16330 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- formtools/templates/formtools/form.html | 2 +- formtools/templates/formtools/preview.html | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/formtools/templates/formtools/form.html b/formtools/templates/formtools/form.html index cfb5c6c..2f2de1f 100644 --- a/formtools/templates/formtools/form.html +++ b/formtools/templates/formtools/form.html @@ -4,7 +4,7 @@ {% if form.errors %}

Please correct the following errors

{% else %}

Submit

{% endif %} -
{% csrf_token %} +{% csrf_token %} {{ form }}
diff --git a/formtools/templates/formtools/preview.html b/formtools/templates/formtools/preview.html index dea3a99..eb88b1e 100644 --- a/formtools/templates/formtools/preview.html +++ b/formtools/templates/formtools/preview.html @@ -15,7 +15,7 @@

Security hash: {{ hash_value }}

-{% csrf_token %} +{% csrf_token %} {% for field in form %}{{ field.as_hidden }} {% endfor %} @@ -25,7 +25,7 @@

Or edit it again

-{% csrf_token %} +{% csrf_token %} {{ form }}