summaryrefslogtreecommitdiff
path: root/ishtar_common/models_common.py
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2024-02-15 23:04:51 +0100
committerÉtienne Loks <etienne.loks@iggdrasil.net>2024-04-16 16:41:51 +0200
commit4b8d81d578bdd99a16ba82f911fc578d0d696b35 (patch)
tree45887413459dab52b646c9207832e51daa6100aa /ishtar_common/models_common.py
parent523f49aea73ef213d2eb0dab0a43af8dce3699ce (diff)
downloadIshtar-4b8d81d578bdd99a16ba82f911fc578d0d696b35.tar.bz2
Ishtar-4b8d81d578bdd99a16ba82f911fc578d0d696b35.zip
🐛 fix display_coordinates when no default srid is set
Diffstat (limited to 'ishtar_common/models_common.py')
-rw-r--r--ishtar_common/models_common.py3
1 files changed, 2 insertions, 1 deletions
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: