diff --git a/vstutils/__init__.py b/vstutils/__init__.py index d69c3e52..ac415434 100644 --- a/vstutils/__init__.py +++ b/vstutils/__init__.py @@ -1,2 +1,2 @@ # pylint: disable=django-not-available -__version__: str = '5.9.4' +__version__: str = '5.9.5' diff --git a/vstutils/middleware.py b/vstutils/middleware.py index 15d41115..9ab6b9be 100644 --- a/vstutils/middleware.py +++ b/vstutils/middleware.py @@ -213,7 +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 + 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