summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrédéric Péters <fpeters@entrouvert.com>2020-04-17 14:06:49 (GMT)
committerFrédéric Péters <fpeters@entrouvert.com>2020-04-17 14:06:49 (GMT)
commitcec2486187d073bb73772b9e69ff68e6ee1ce1b5 (patch)
tree74f80725cf01749d328cffc24e13444d83eaf744
parent7b6a867e112b945e8b22beff6460faf818628ac2 (diff)
downloadcombo-plugin-gnm-cec2486187d073bb73772b9e69ff68e6ee1ce1b5.zip
combo-plugin-gnm-cec2486187d073bb73772b9e69ff68e6ee1ce1b5.tar.gz
combo-plugin-gnm-cec2486187d073bb73772b9e69ff68e6ee1ce1b5.tar.bz2
iterate over features, as get_geojson return value changedv6.7
-rw-r--r--combo_plugin_gnm/management/commands/gnm_create_places.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/combo_plugin_gnm/management/commands/gnm_create_places.py b/combo_plugin_gnm/management/commands/gnm_create_places.py
index 9a4e466..067deb3 100644
--- a/combo_plugin_gnm/management/commands/gnm_create_places.py
+++ b/combo_plugin_gnm/management/commands/gnm_create_places.py
@@ -40,7 +40,7 @@ class Command(BaseCommand):
})
parent_page.title = layer.label
parent_page.save()
- for feature in layer.get_geojson(request=None):
+ for feature in layer.get_geojson(request=None)['features']:
cell_parameters = dict([
(x, feature['properties'][x]) for x in feature['properties'] if x in cell_form_keys])
try: