Fixed #13013 -- Added missing {% csrf_token %} in example form.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@12708 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Russell Keith-Magee 2010-03-08 03:18:58 +00:00
parent e081160706
commit abd0e96285
1 changed files with 1 additions and 0 deletions

View File

@ -568,6 +568,7 @@ Here's example HTML template code:
.. code-block:: html+django .. code-block:: html+django
<form action="/i18n/setlang/" method="post"> <form action="/i18n/setlang/" method="post">
{% csrf_token %}
<input name="next" type="hidden" value="/next/page/" /> <input name="next" type="hidden" value="/next/page/" />
<select name="language"> <select name="language">
{% for lang in LANGUAGES %} {% for lang in LANGUAGES %}