summaryrefslogtreecommitdiff
path: root/ishtar_common/models_common.py
diff options
context:
space:
mode:
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: