fix sync of page title with layer
This commit is contained in:
parent
7f5fd42136
commit
5370bc5669
|
@ -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={
|
||||
|
|
Loading…
Reference in New Issue