From 3a762762121acfc83f0659c1f1955aee33bc9804 Mon Sep 17 00:00:00 2001 From: Claude Paroz Date: Fri, 3 Apr 2015 12:11:54 +0200 Subject: [1.8.x] 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. Backport of 7a0d9b5cda from master. --- docs/releases/1.8.1.txt | 3 +++ 1 file changed, 3 insertions(+) (limited to 'docs') diff --git a/docs/releases/1.8.1.txt b/docs/releases/1.8.1.txt index 61c506b10a..c848fc2c30 100644 --- a/docs/releases/1.8.1.txt +++ b/docs/releases/1.8.1.txt @@ -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`). -- cgit v1.3