update places page if layer name changed

This commit is contained in:
Frédéric Péters 2017-09-27 09:32:05 +02:00
parent 88d6c7be95
commit 7f5fd42136
1 changed files with 2 additions and 0 deletions

View File

@ -37,6 +37,8 @@ class Command(BaseCommand):
'redirect_url': '..',
'parent': places_page,
})
parent_page.title = layer.label
parent_page.save()
for feature in layer.get_geojson():
cell_parameters = dict([
(x, feature['properties'][x]) for x in feature['properties'] if x in cell_form_keys])