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:
parent
e081160706
commit
abd0e96285
|
@ -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 %}
|
||||||
|
|
Loading…
Reference in New Issue