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 }}