summaryrefslogtreecommitdiff
path: root/ishtar_common/data_importer.py
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2025-08-05 09:45:05 +0200
committerÉtienne Loks <etienne.loks@iggdrasil.net>2025-10-24 18:32:22 +0200
commit63ec679d390f70b89ee2ae6597b7d1f76ae05fd0 (patch)
treec56936dee4088a6fe4072eeab5ccb14cac951d1a /ishtar_common/data_importer.py
parentb041ca58c7d684b224e65858e4cf587e66b1b047 (diff)
downloadIshtar-63ec679d390f70b89ee2ae6597b7d1f76ae05fd0.tar.bz2
Ishtar-63ec679d390f70b89ee2ae6597b7d1f76ae05fd0.zip
✨ GIS API: adapt import for QGIS import types
Diffstat (limited to 'ishtar_common/data_importer.py')
-rw-r--r--ishtar_common/data_importer.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/ishtar_common/data_importer.py b/ishtar_common/data_importer.py
index 545df1948..dcd4161c5 100644
--- a/ishtar_common/data_importer.py
+++ b/ishtar_common/data_importer.py
@@ -1314,7 +1314,7 @@ class Importer(object):
self.ambiguous_objects, self.not_find_objects = [], []
geodata, main_geodata = {}, {}
- if self.TYPE == "gis":
+ if self.TYPE in ("gis", "qgs"):
profile = get_current_profile()
default_srs = profile.srs if profile.srs else None
if "geodata" in data:
@@ -1356,7 +1356,7 @@ class Importer(object):
self._add_to_post_save(obj.__class__, obj.pk, idx_line)
GeoVectorData = apps.get_model("ishtar_common", "GeoVectorData")
- if self.TYPE == "gis" and not isinstance(obj, GeoVectorData):
+ if self.TYPE in ("gis", "qgs") and not isinstance(obj, GeoVectorData):
# create GIS data and attach to the created object if the object is not GIS
if not obj and not self.c_errors:
self.c_errors = True