ignore pages with layer name as slug anchored as root

This commit is contained in:
Frédéric Péters 2021-06-06 17:21:08 +02:00
parent abb766287f
commit 8c75b8885b
1 changed files with 1 additions and 1 deletions

View File

@ -67,7 +67,7 @@ class Command(BaseCommand):
page.title = Template(page_title_template).render(ctx)
if not page.title:
continue
page.parent = Page.objects.get(slug=layer.slug)
page.parent = Page.objects.get(slug=layer.slug, parent__isnull=False)
page.template_name = 'place'
page.save()