From 2d2e1a6a9dbfe0cba58a4d2486c51fccdb501d55 Mon Sep 17 00:00:00 2001 From: Dani Fornons Date: Fri, 3 Oct 2025 12:20:28 +0200 Subject: [5.2.x] Fixed #36636, Refs #15902 -- Removed session-based storage reference from set_language() docs. Backport of 2514857e3fae831106832cca8823237801cf2cad from main. --- django/views/i18n.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'django') diff --git a/django/views/i18n.py b/django/views/i18n.py index 771035d8ab..04e37e4ac1 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 -- cgit v1.3