From b484d9d137010eb40ef3bd8121bcf42256579d9b Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Tue, 16 Aug 2022 17:38:47 +0200 Subject: Geo sheet: fix display coordinates --- CHANGES.md | 11 +++++++++++ ishtar_common/models_common.py | 6 +++--- 2 files changed, 14 insertions(+), 3 deletions(-) diff --git a/CHANGES.md b/CHANGES.md index ec1e95b4d..ebd5a1993 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -6,6 +6,17 @@ date: 2022-08-05 Ishtar changelog ================ +v4.0.14 - 2022-08-05 +-------------------- + +### Features ### + +- Import: manage CSV geo data + +### Bug fix ### + +- Geo sheet: fix display coordinates + v4.0.13 - 2022-08-05 -------------------- diff --git a/ishtar_common/models_common.py b/ishtar_common/models_common.py index c88c71c35..d6d9fb4ae 100644 --- a/ishtar_common/models_common.py +++ b/ishtar_common/models_common.py @@ -2331,10 +2331,10 @@ class GeoVectorData(Imported, OwnPerms): @property def display_spatial_reference_system(self): - profile = get_current_profile() - if not profile.display_srs or not profile.display_srs.srid: + if self.spatial_reference_system: return self.spatial_reference_system - return profile.display_srs + profile = get_current_profile() + return profile.srs def get_geo_items(self, get_polygons, rounded=5): label = self.label if hasattr(self, "label") else self.short_label -- cgit v1.2.3