From d31da22b24fac038d68938bc15f32c2961eb4afa Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Tue, 5 Aug 2025 09:45:05 +0200 Subject: ✨ GIS API: adapt import for QGIS import types MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ishtar_common/data_importer.py | 4 ++-- 1 file 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 -- cgit v1.2.3