diff options
author | Étienne Loks <etienne.loks@iggdrasil.net> | 2025-08-05 09:45:05 +0200 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2025-10-15 19:33:00 +0200 |
commit | d31da22b24fac038d68938bc15f32c2961eb4afa (patch) | |
tree | 76e7a331f0e1b97c5f6c52551cfc8872a1fb93ed | |
parent | fa9a89325a3767a8cc99fca04c8671a193e3378e (diff) | |
download | Ishtar-d31da22b24fac038d68938bc15f32c2961eb4afa.tar.bz2 Ishtar-d31da22b24fac038d68938bc15f32c2961eb4afa.zip |
✨ GIS API: adapt import for QGIS import types
-rw-r--r-- | ishtar_common/data_importer.py | 4 |
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 |