fix sync of page title with layer

This commit is contained in:
Frédéric Péters 2017-09-27 10:48:54 +02:00
parent 7f5fd42136
commit 5370bc5669
1 changed files with 1 additions and 1 deletions

View File

@ -29,7 +29,7 @@ class Command(BaseCommand):
places_page = Page.objects.get(slug='lieux')
for layer in MapLayer.objects.filter(slug__in=layers):
cell_form_keys = [x['varname'] for x in settings.JSON_CELL_TYPES[layer.slug].get('form')]
parent_page = Page.objects.get_or_create(
parent_page, created = Page.objects.get_or_create(
parent__id=places_page.id,
slug=layer.slug,
defaults={