From 581cf23c4ffdd35eef8ca21c489a3a576062f027 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Thu, 11 Sep 2025 01:32:42 +0200 Subject: ✨ GIS API: manage import_key for export MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ishtar_common/views_api.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'ishtar_common/views_api.py') diff --git a/ishtar_common/views_api.py b/ishtar_common/views_api.py index fe301b04d..6c0f8107b 100644 --- a/ishtar_common/views_api.py +++ b/ishtar_common/views_api.py @@ -107,6 +107,7 @@ class GISExportAPI(GISBaseImportView, GISAPIView): dct["start"] = (page - 1) * self.PAGE_LEN + 1 try: importer_class = importer.get_importer_class() + import_key = importer.get_gis_import_key() cols, col_names = importer.get_columns(importer_class=importer_class) obj_name = importer_class.OBJECT_CLS.__name__.lower() return get_item(importer_class.OBJECT_CLS, "get_" + obj_name, obj_name, @@ -114,6 +115,7 @@ class GISExportAPI(GISBaseImportView, GISAPIView): request, data_type="json", full=False, force_own=False, no_link=True, col_names=col_names, col_types=importer.get_columns_types(), + geo_import_key=import_key, **dct ) except ImporterError as e: -- cgit v1.2.3