From da37e53a06d8895e9bab4e6681c2d6ea087d1b76 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Tue, 1 Jun 2021 14:02:59 +0200 Subject: Custom index - document: operation_source_type_code, index by operation and source_type code --- ishtar_common/models_common.py | 1 + 1 file changed, 1 insertion(+) (limited to 'ishtar_common/models_common.py') diff --git a/ishtar_common/models_common.py b/ishtar_common/models_common.py index 7a0397c36..db7e77ce0 100644 --- a/ishtar_common/models_common.py +++ b/ishtar_common/models_common.py @@ -3034,6 +3034,7 @@ class CompleteIdentifierItem(models.Model, ImageContainerModel): try: self_keys = set(list(model.objects.filter(pk=self.pk).values_list(*keys))) except Exception: # bad settings - not managed here + print("Bad settings for custom_index {}".format(";".join(keys))) return if len(self_keys) != 1: # key is not distinct return -- cgit v1.2.3