don't create pages with empty titles
This commit is contained in:
parent
7f60bd72e8
commit
d9762e6683
|
@ -58,6 +58,8 @@ class Command(BaseCommand):
|
|||
'{{ properties.nom }}')
|
||||
ctx = Context({'properties': feature['properties']})
|
||||
page.title = Template(page_title_template).render(ctx)
|
||||
if not page.title:
|
||||
continue
|
||||
page.parent = Page.objects.get(slug=layer.slug)
|
||||
page.template_name = 'place'
|
||||
page.save()
|
||||
|
|
Loading…
Reference in New Issue