From 48bfd85f66e4047bee767f1df6d41bdb6aae2ef3 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Thu, 31 Jul 2025 13:01:41 +0200 Subject: 🐛 import: force explicitly geo check on post treatments for complex associations MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ishtar_common/data_importer.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'ishtar_common/data_importer.py') diff --git a/ishtar_common/data_importer.py b/ishtar_common/data_importer.py index 9329fbfac..2e923925f 100644 --- a/ishtar_common/data_importer.py +++ b/ishtar_common/data_importer.py @@ -950,6 +950,11 @@ class Importer(object): item._timestamp = self.timestamp item._queue = "low_priority" item.save() + if hasattr(item, "post_save_geo"): + # force geo recheck - needed for background task + item = cls.objects.get(pk=pk) + item._queue = "low_priority" + item.post_save_geo() if hasattr(item, "RELATED_POST_PROCESS"): for related_key in item.RELATED_POST_PROCESS: for related in getattr(item, related_key).all(): -- cgit v1.2.3