ignore pages with layer name as slug anchored as root
This commit is contained in:
parent
abb766287f
commit
8c75b8885b
|
@ -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()
|
||||
|
||||
|
|
Loading…
Reference in New Issue