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:
Claude Paroz 2015-04-03 12:11:54 +02:00
parent 426b63ba04
commit 7a0d9b5cda
3 changed files with 20 additions and 7 deletions

View file

@ -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`).