diff options
author | Dan McGee <dan@archlinux.org> | 2010-06-05 19:58:31 +0200 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2010-06-05 19:58:31 +0200 |
commit | bad2825fab9f45f468414ed551bad9d987923600 (patch) | |
tree | 8e91d017ddbe2f28416395cb43f70644d509bd9f /templates/devel | |
parent | 7646f8ea7ce19b404a0e57c85e5dd589b3a53371 (diff) | |
download | archweb-bad2825fab9f45f468414ed551bad9d987923600.tar.gz archweb-bad2825fab9f45f468414ed551bad9d987923600.tar.xz |
Updates for CSRF protection in Django 1.2.X
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'templates/devel')
-rw-r--r-- | templates/devel/index.html | 2 | ||||
-rw-r--r-- | templates/devel/profile.html | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/templates/devel/index.html b/templates/devel/index.html index 662e824..25429ec 100644 --- a/templates/devel/index.html +++ b/templates/devel/index.html @@ -60,7 +60,7 @@ </tbody> </table> - <form id="dash-pkg-notify" method="post" action="/devel/notify/"> + <form id="dash-pkg-notify" method="post" action="/devel/notify/">{% csrf_token %} <fieldset> <p><input id="notify" name="notify" type="checkbox" value="yes" {% if user.get_profile.notify %} checked="checked"{% endif %} /> diff --git a/templates/devel/profile.html b/templates/devel/profile.html index 178a59a..2c1c658 100644 --- a/templates/devel/profile.html +++ b/templates/devel/profile.html @@ -6,7 +6,7 @@ <h2>Developer Profile</h2> - <form id="edit-profile-form" method="post" action="."> + <form id="edit-profile-form" method="post" action=".">{% csrf_token %} <fieldset> <legend>Username: <strong>{{ user.username }}</strong></legend> {{ form.as_p }} |