1
0
mirror of https://github.com/django/django.git synced 2025-10-24 06:06:09 +00:00

[6.0.x] Fixed #36636, Refs #15902 -- Removed session-based storage reference from set_language() docs.

Backport of 2514857e3f from main.
This commit is contained in:
Dani Fornons
2025-10-03 12:20:28 +02:00
committed by Jacob Walls
parent 2fe18d943f
commit ec81e68000
2 changed files with 6 additions and 7 deletions

View File

@@ -1884,10 +1884,9 @@ Activate this view by adding the following line to your URLconf::
language-independent itself to work correctly.
The view expects to be called via the ``POST`` method, with a ``language``
parameter set in request. If session support is enabled, the view saves the
language choice in the user's session. It also saves the language choice in a
cookie that is named ``django_language`` by default. (The name can be changed
through the :setting:`LANGUAGE_COOKIE_NAME` setting.)
parameter set in request. The view saves the language choice in a cookie that
is named ``django_language`` by default. (The name can be changed through the
:setting:`LANGUAGE_COOKIE_NAME` setting.)
After setting the language choice, Django looks for a ``next`` parameter in the
``POST`` or ``GET`` data. If that is found and Django considers it to be a safe