summaryrefslogtreecommitdiff
path: root/papillon/templates/editChoicesAdmin.html
diff options
context:
space:
mode:
authorAdrien Dorsaz <adrien@adorsaz.ch>2013-08-08 08:03:30 +0200
committerAdrien Dorsaz <adrien@adorsaz.ch>2013-08-08 08:03:30 +0200
commit1872b814dbfd935182d3e0b8166fbb67053d85ee (patch)
tree136803022f28f93868ed4e8ca408d0e95985e0f9 /papillon/templates/editChoicesAdmin.html
parent18b57522b7dcfe210b627bbc665c000cba53b1ae (diff)
downloadPapillon-1872b814dbfd935182d3e0b8166fbb67053d85ee.tar.bz2
Papillon-1872b814dbfd935182d3e0b8166fbb67053d85ee.zip
Use django to protect forms (except create form, because of other work not commited)
Diffstat (limited to 'papillon/templates/editChoicesAdmin.html')
-rw-r--r--papillon/templates/editChoicesAdmin.html1
1 files changed, 1 insertions, 0 deletions
diff --git a/papillon/templates/editChoicesAdmin.html b/papillon/templates/editChoicesAdmin.html
index d296a16..78d3be5 100644
--- a/papillon/templates/editChoicesAdmin.html
+++ b/papillon/templates/editChoicesAdmin.html
@@ -28,6 +28,7 @@
</tr>
{% for choice in choices %}
<form action="." method="post">
+ {% csrf_token %}
{{choice.form.poll}}{{choice.form.order}}<tr>
{%if not poll.dated_choices%}<td><a href='?up_choice={{choice.id}}' class='arrow'>+</a>
/ <a href='?down_choice={{choice.id}}' class='arrow'>-</a></td>{%endif%}