diff options
| author | Dani Fornons <fornons@gmail.com> | 2025-10-03 12:20:28 +0200 |
|---|---|---|
| committer | Jacob Walls <jacobtylerwalls@gmail.com> | 2025-10-03 15:17:27 -0400 |
| commit | ec81e68000dcd78426f7ecaa8e8d0ddce87cb471 (patch) | |
| tree | a78a5d77c7d25c38b254bed372190ed5519633c5 /django/views | |
| parent | 2fe18d943f8e826cee22232a61363c36651ef1f0 (diff) | |
[6.0.x] Fixed #36636, Refs #15902 -- Removed session-based storage reference from set_language() docs.
Backport of 2514857e3fae831106832cca8823237801cf2cad from main.
Diffstat (limited to 'django/views')
| -rw-r--r-- | django/views/i18n.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/django/views/i18n.py b/django/views/i18n.py index 49e3f808c1..a110eb87ef 100644 --- a/django/views/i18n.py +++ b/django/views/i18n.py @@ -29,9 +29,9 @@ def builtin_template_path(name): def set_language(request): """ - Redirect to a given URL while setting the chosen language in the session - (if enabled) and in a cookie. The URL and the language code need to be - specified in the request parameters. + Redirect to a given URL while setting the chosen language in the language + cookie. The URL and the language code need to be specified in the request + parameters. Since this view changes how the user will see the rest of the site, it must only be accessed as a POST request. If called as a GET request, it will |
