From 57ce249c3e853e0f8292a18ceeae2509a9feadc3 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Tue, 16 Apr 2024 18:18:13 +0200 Subject: ✨ ishtar_maintenance: fix_geographic_items task - 🐛 Geodata: fix default attachment for find, context records, warehouse, container MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ishtar_common/models_common.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'ishtar_common/models_common.py') diff --git a/ishtar_common/models_common.py b/ishtar_common/models_common.py index 9c081a022..ddf5d46d5 100644 --- a/ishtar_common/models_common.py +++ b/ishtar_common/models_common.py @@ -3302,9 +3302,10 @@ class MainItem(ShortMenuItem, SerializeItem, SheetItem): self._cached_label_checked = False cached_label_changed(self.__class__, instance=self, created=False) - def post_save_geo(self): + def post_save_geo(self, save=True): + if getattr(self, "_post_saved_geo", False): + return self.no_post_process() - self._post_saved_geo = False post_save_geo(self.__class__, instance=self, created=False) return False -- cgit v1.2.3