From 4f6e9022857a08c5fae4e43124e40b6e9d1ab260 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Fri, 18 Feb 2022 11:22:38 +0100 Subject: Geodata redesign: operation migrations (2/2) --- ishtar_common/utils.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'ishtar_common/utils.py') diff --git a/ishtar_common/utils.py b/ishtar_common/utils.py index 02eeff93c..53727b6d3 100644 --- a/ishtar_common/utils.py +++ b/ishtar_common/utils.py @@ -774,6 +774,7 @@ 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) @@ -845,6 +846,9 @@ def _post_save_geo(sender, **kwargs): if not instance: return + return + # TODO to delete + kls_name = instance.__class__.__name__ if not profile.locate_warehouses and ( -- cgit v1.2.3