From 12ce8d38a2975ef2f512c0e60670192b07696057 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Wed, 17 Mar 2021 11:50:11 +0100 Subject: Fix complete_id for document --- ishtar_common/models_common.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'ishtar_common/models_common.py') diff --git a/ishtar_common/models_common.py b/ishtar_common/models_common.py index e5bafdcd5..e0685c064 100644 --- a/ishtar_common/models_common.py +++ b/ishtar_common/models_common.py @@ -2803,6 +2803,8 @@ class CompleteIdentifierItem(models.Model, ImageContainerModel): cached_label_key = getattr(self, 'GEO_LABEL', None) if hasattr(self, "CACHED_COMPLETE_ID"): cached_label_key = self.CACHED_COMPLETE_ID + if not cached_label_key: + return complete_identifier = getattr(self, cached_label_key) return complete_identifier -- cgit v1.2.3