summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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