summaryrefslogtreecommitdiff
path: root/ishtar_common/utils.py
diff options
context:
space:
mode:
Diffstat (limited to 'ishtar_common/utils.py')
-rw-r--r--ishtar_common/utils.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/ishtar_common/utils.py b/ishtar_common/utils.py
index eab25a56f..02eeff93c 100644
--- a/ishtar_common/utils.py
+++ b/ishtar_common/utils.py
@@ -769,6 +769,11 @@ def _post_save_geodata(sender, **kwargs):
return
modified = False
+ if getattr(instance, "post_save_geo", False):
+ instance.post_save_geo(save=False)
+ modified = True
+
+ # managed cached coordinates
cached_x, cached_y, cached_z = None, None, None
coords = instance.display_coordinates(rounded=False, dim=3)
@@ -794,6 +799,8 @@ def _post_save_geodata(sender, **kwargs):
if modified:
instance._post_saved_geo = True
+ instance._no_move = True
+ instance.skip_history_when_saving = True
instance.save()
cache_key, __ = get_cache(sender, ("post_save_geo", instance.pk))
cache.set(cache_key, None, settings.CACHE_TASK_TIMEOUT)