mirror of
https://github.com/django/django.git
synced 2025-10-24 14:16:09 +00:00
Fixed #24073 -- Returned None for get_language when translations are deactivated
This fixes a regression caused by f7c287fca9. Thanks Markus Holtermann
for identifying the regression.
This commit is contained in:
@@ -1021,6 +1021,9 @@ Miscellaneous
|
||||
this will not happen any longer. It might be that new database migrations are
|
||||
generated (once) after migrating to 1.8.
|
||||
|
||||
* :func:`django.utils.translation.get_language()` now returns ``None`` instead
|
||||
of :setting:`LANGUAGE_CODE` when translations are temporarily deactivated.
|
||||
|
||||
.. _deprecated-features-1.8:
|
||||
|
||||
Features deprecated in 1.8
|
||||
|
||||
Reference in New Issue
Block a user