Skip to content

Commit

Permalink
added {% csrf_token %} to templates with forms
Browse files Browse the repository at this point in the history
  • Loading branch information
brosner committed Jun 30, 2010
1 parent d6feb9c commit 764a286
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/wakawaka/templates/wakawaka/edit.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ <h1>
{% endif %}

<form class="wakawaka_edit_form" method="POST" action="">
{% csrf_token %}
{{ form.as_p }}
<p>
<input type="submit" value="{% trans "Save changes" %}" />
Expand All @@ -39,6 +40,7 @@ <h1>

{% if not page.is_initial and delete_form %}
<form class="wakawaka_delete_form" method="POST" action="" onsubmit="return confirm('{% trans "Please confirm deletion" %}');">
{% csrf_token %}
{{ delete_form.as_p }}
<p>
<input type="submit" value="{% trans "Delete" %}" />
Expand Down
1 change: 1 addition & 0 deletions src/wakawaka/templates/wakawaka/revision_table.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{% load i18n %}

<form method="GET" action="{% url wakawaka_changes slug=page.slug %}">
{% csrf_token %}
<table class="history" border="1">
<tr>
<th>{% trans "Compare" %}</th>
Expand Down

0 comments on commit 764a286

Please sign in to comment.