mirror of
https://github.com/django/django.git
synced 2025-09-09 04:00:48 +00:00
Fixed #18700 -- Added URL reversal for i18n set_language view.
This commit is contained in:
parent
b496be331c
commit
10f979fd92
3 changed files with 7 additions and 3 deletions
|
@ -1272,7 +1272,7 @@ Here's example HTML template code:
|
|||
|
||||
.. code-block:: html+django
|
||||
|
||||
<form action="/i18n/setlang/" method="post">
|
||||
<form action="{% url 'set_language' %}" method="post">
|
||||
{% csrf_token %}
|
||||
<input name="next" type="hidden" value="{{ redirect_to }}" />
|
||||
<select name="language">
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue