]> git.openstreetmap.org Git - osqa.git/blobdiff - forum/skins/default/templates/answer_edit.html
enabling the CSRF protection middleware and adding the {% csrf_token %} tag to the...
[osqa.git] / forum / skins / default / templates / answer_edit.html
index 985adddc84829781f5f1babff6a8e92226ea7ef2..9409f0d8987b87ee223fe3a05e832e605ed2760f 100644 (file)
@@ -63,7 +63,8 @@
 </div>
 <div id="main-body" class="ask-body">
     <div id="askform">
-        <form id="fmedit" action="{% url edit_answer answer.id %}" method="post" >
+        <form id="fmedit" action="{% url edit_answer answer.id %}" method="post">
+            {% csrf_token %}
             <label for="id_revision" ><strong>{% trans "revision" %}:</strong></label> <br/> 
             {% if revision_form.revision.errors %}{{ revision_form.revision.errors.as_ul }}{% endif %}
             <div>