From edfd253a4f00c8e7b60cc8618d2577fe848d6385 Mon Sep 17 00:00:00 2001 From: sijandh35 Date: Tue, 16 Jul 2024 15:36:32 +0545 Subject: [PATCH 1/2] feat: add geojson support on media of a form --- kpi/models/asset_file.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/kpi/models/asset_file.py b/kpi/models/asset_file.py index 7a73e57185..bc350b3a45 100644 --- a/kpi/models/asset_file.py +++ b/kpi/models/asset_file.py @@ -78,6 +78,8 @@ class AssetFile(models.Model, AbstractFormMedia): 'text/csv', 'application/xml', 'application/zip', + 'application/geo+json', + 'application/json', ), PAIRED_DATA: ('application/xml',), MAP_LAYER: ( From 5f5323e0fd67f87c7b81eaf06d4eb750262e4425 Mon Sep 17 00:00:00 2001 From: sijandh35 Date: Tue, 16 Jul 2024 15:57:26 +0545 Subject: [PATCH 2/2] fix: removed json as this is not required --- kpi/models/asset_file.py | 1 - 1 file changed, 1 deletion(-) diff --git a/kpi/models/asset_file.py b/kpi/models/asset_file.py index bc350b3a45..786193211f 100644 --- a/kpi/models/asset_file.py +++ b/kpi/models/asset_file.py @@ -79,7 +79,6 @@ class AssetFile(models.Model, AbstractFormMedia): 'application/xml', 'application/zip', 'application/geo+json', - 'application/json', ), PAIRED_DATA: ('application/xml',), MAP_LAYER: (