diff options
author | Étienne Loks <etienne.loks@iggdrasil.net> | 2024-04-16 18:18:13 +0200 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2024-04-17 12:12:19 +0200 |
commit | 57ce249c3e853e0f8292a18ceeae2509a9feadc3 (patch) | |
tree | 03a3b1633cc09ad0814e96d6e98a75d9a5b6c7b7 /ishtar_common/models_common.py | |
parent | 3d567dac887b3768432483e1840279e0aed61317 (diff) | |
download | Ishtar-57ce249c3e853e0f8292a18ceeae2509a9feadc3.tar.bz2 Ishtar-57ce249c3e853e0f8292a18ceeae2509a9feadc3.zip |
✨ ishtar_maintenance: fix_geographic_items task - 🐛 Geodata: fix default attachment for find, context records, warehouse, container
Diffstat (limited to 'ishtar_common/models_common.py')
-rw-r--r-- | ishtar_common/models_common.py | 5 |
1 files changed, 3 insertions, 2 deletions
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 |