Mercurial > public > sg101
diff gpp/templates/gcalendar/event.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 | 5b69d6e01fd4 |
children | d77e0dc772ad |
line wrap: on
line diff
--- a/gpp/templates/gcalendar/event.html Sat Apr 03 02:15:04 2010 +0000 +++ b/gpp/templates/gcalendar/event.html Sat Apr 03 20:00:56 2010 +0000 @@ -16,7 +16,7 @@ <li>Once submitted, your event will be reviewed by the site staff for approval. Normally it will appear on the calendar within 24 hours.</li> </ul> -<form id="id_gcal_event_form" action="." method="post"> +<form id="id_gcal_event_form" action="." method="post">{% csrf_token %} <table> {% if form.non_field_errors %} <tr><td> </td><td>{{ form.non_field_errors }}</td></tr>