diff --git a/vstutils/__init__.py b/vstutils/__init__.py index 652f10fc..d69c3e52 100644 --- a/vstutils/__init__.py +++ b/vstutils/__init__.py @@ -1,2 +1,2 @@ # pylint: disable=django-not-available -__version__: str = '5.9.3' +__version__: str = '5.9.4' diff --git a/vstutils/middleware.py b/vstutils/middleware.py index bb42b7b7..15d41115 100644 --- a/vstutils/middleware.py +++ b/vstutils/middleware.py @@ -213,6 +213,7 @@ def get_lang_object(self, request): set_cookie = True if 'lang' in request.GET: code = request.GET['lang'] + set_cookie = request.COOKIES.get('settings.LANGUAGE_COOKIE_NAME') != code elif settings.LANGUAGE_COOKIE_NAME in request.COOKIES: code = request.COOKIES[settings.LANGUAGE_COOKIE_NAME] set_cookie = False