From a77f21776fa44e10e808c7ae1d0571840a4f4e9a Mon Sep 17 00:00:00 2001 From: Alejandro Alonso Date: Tue, 9 Jun 2015 10:33:57 +0200 Subject: [PATCH] Fixing I18NJsonField for a not covered scenario with None data --- taiga/base/fields.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/taiga/base/fields.py b/taiga/base/fields.py index 63c7739a..07898ea2 100644 --- a/taiga/base/fields.py +++ b/taiga/base/fields.py @@ -49,6 +49,9 @@ class I18NJsonField(JsonField): def translate_values(self, d): i18n_d = {} + if d is None: + return d + for key, value in d.items(): if isinstance(value, dict): i18n_d[key] = self.translate_values(value)