mirror of
https://github.com/django/django.git
synced 2025-11-01 20:31:40 +00:00
Fixed #24569 -- Made some translation functions accept None value
get_language() can return None when translations are deactivated. Thanks Nicola Peduzzi for the reporti and Tim Graham for the review.
This commit is contained in:
parent
426b63ba04
commit
7a0d9b5cda
3 changed files with 20 additions and 7 deletions
|
|
@ -14,3 +14,6 @@ Bugfixes
|
|||
|
||||
* Restored proper parsing of the :djadmin:`testserver` command's positional
|
||||
arguments (fixture names) (:ticket:`24571`).
|
||||
|
||||
* Prevented ``TypeError`` in translation functions ``check_for_language()`` and
|
||||
``get_language_bidi()`` when translations are deactivated (:ticket:`24569`).
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue