1
0
mirror of https://github.com/django/django.git synced 2025-11-07 07:15:35 +00:00

Fixed #14825 -- LocaleMiddleware keeps language

* LocaleMiddleware stores language into session if it is not present there.
This commit is contained in:
Vlastimil Zíma
2013-03-25 15:45:24 +01:00
committed by Claude Paroz
parent 1514f17aa6
commit 6de81d65f4
4 changed files with 42 additions and 1 deletions

View File

@@ -266,6 +266,10 @@ Minor features
``False`` allows the field to reference proxy models. The default is ``True``
to retain the old behavior.
* The middleware :class:`~django.middleware.locale.LocaleMiddleware` now
stores active language in session if it is not present there. This
prevents loss of language settings after session flush, e.g. logout.
Backwards incompatible changes in 1.6
=====================================