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.py9
1 files changed, 3 insertions, 6 deletions
diff --git a/ishtar_common/utils.py b/ishtar_common/utils.py
index a7e07ebde..88c9129a3 100644
--- a/ishtar_common/utils.py
+++ b/ishtar_common/utils.py
@@ -774,16 +774,13 @@ def _post_save_geodata(sender, **kwargs):
modified = True
# managed cached coordinates
- # TODO
cached_x, cached_y, cached_z = None, None, None
- coords = instance.display_coordinates(rounded=False, dim=3)
- if coords:
+ coords = instance.display_coordinates(rounded=False, dim=3, cache=False)
+ if coords and coords != [None, None, None]:
cached_x, cached_y, cached_z = coords
else:
- coords = instance.display_coordinates(rounded=False, dim=2)
- if not coords:
- coords = instance.get_coordinates_from_polygon(rounded=False)
+ coords = instance.display_coordinates(rounded=False, dim=2, cache=False)
if coords:
cached_x, cached_y = coords