summaryrefslogtreecommitdiff
path: root/ishtar_common/models_common.py
diff options
context:
space:
mode:
Diffstat (limited to 'ishtar_common/models_common.py')
-rw-r--r--ishtar_common/models_common.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/ishtar_common/models_common.py b/ishtar_common/models_common.py
index 4b0f1b160..573d4f8bf 100644
--- a/ishtar_common/models_common.py
+++ b/ishtar_common/models_common.py
@@ -5192,9 +5192,7 @@ class IdentifierItem(models.Model):
# search cache clean
SearchCache = apps.get_model("ishtar_common", "SearchCache")
- SearchCache.objects.filter(
- content_type=ContentType.objects.get_for_model(self.__class__)
- ).delete()
+ SearchCache.objects.all().delete()
def regenerate_all_ids(self, save=True):
if getattr(self, "_prevent_loop", False):