mirror of
https://github.com/django/django.git
synced 2025-11-03 13:23:19 +00:00
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
1 changed files with 1 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue