Mercurial > public > sg101
diff gpp/templates/polls/poll_vote.html @ 194:6a5549c2efb5
Implement #62, add support for CSRF protection.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Sat, 03 Apr 2010 20:00:56 +0000 |
parents | dbd703f7d63a |
children | daa2916f5b34 |
line wrap: on
line diff
--- a/gpp/templates/polls/poll_vote.html Sat Apr 03 02:15:04 2010 +0000 +++ b/gpp/templates/polls/poll_vote.html Sat Apr 03 20:00:56 2010 +0000 @@ -6,7 +6,7 @@ {% block content %} <h2>Poll</h2> <h3>{{ poll.question }}</h3> -<form action="." method="post"> +<form action="." method="post">{% csrf_token %} <div class="poll-form"> {{ vote_form.as_p }} <input type="submit" value="Vote" />