momo: don't use cached value if it's empty

This commit is contained in:
Frédéric Péters 2015-10-27 17:36:08 +01:00
parent b9228cb62c
commit 3a0915ee22
1 changed files with 1 additions and 1 deletions

View File

@ -82,7 +82,7 @@ def get_page_dict(request, page, manifest):
page_dict['external'] = True
page_dict['url'] = page.redirect_url
if hasattr(page, '_children'):
if hasattr(page, '_children') and page._children:
children = page._children
else:
children = page.get_children()