commands: get all properties when creating place pages

This commit is contained in:
Frédéric Péters 2020-11-17 15:28:09 +01:00
parent fe2e2f0496
commit ebb6379ef2
1 changed files with 1 additions and 0 deletions

View File

@ -40,6 +40,7 @@ class Command(BaseCommand):
})
parent_page.title = layer.label
parent_page.save()
layer.properties = None # get all properties
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])