From 68ca230560bc946cd2d9dfa593a6d3dda8512d1d Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Thu, 15 Feb 2024 23:04:51 +0100 Subject: 🐛 fix display_coordinates when no default srid is set MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ishtar_common/models_common.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'ishtar_common') diff --git a/ishtar_common/models_common.py b/ishtar_common/models_common.py index c6b1316e4..38aa6fc51 100644 --- a/ishtar_common/models_common.py +++ b/ishtar_common/models_common.py @@ -2393,7 +2393,8 @@ class GeoVectorData(Imported, OwnPerms): profile = get_current_profile() if profile.display_srs and profile.display_srs.srid: spatial_reference_system = profile.display_srs - srid = spatial_reference_system.srid + if spatial_reference_system: + srid = spatial_reference_system.srid if not srid: srid = 4326 if not spatial_reference_system: -- cgit v1.2.3