From a3ba8efda1566a293e21cfcbd43992192567f463 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Sat, 2 Oct 2021 13:23:57 +0200 Subject: Fix bad JSON cache --- ishtar_common/models_common.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ishtar_common/models_common.py') diff --git a/ishtar_common/models_common.py b/ishtar_common/models_common.py index b34445f36..e67b78d67 100644 --- a/ishtar_common/models_common.py +++ b/ishtar_common/models_common.py @@ -1058,7 +1058,7 @@ class JsonData(models.Model, CachedGen): if not current_keys: return for keys in current_keys: - if keys and keys[0] == "__get_dynamic_choices": + if isinstance(keys, (list, tuple)) and keys[0] == "__get_dynamic_choices": cls._get_dynamic_choices(keys[1], force=True) @classmethod -- cgit v1.2.3