forked from rc/aircox
aircox/models/page: display episode/page title
This commit is contained in:
@ -240,7 +240,7 @@ class ChildPage(Page):
|
|||||||
|
|
||||||
@property
|
@property
|
||||||
def display_title(self):
|
def display_title(self):
|
||||||
if self.is_published:
|
if self.title:
|
||||||
return self.title
|
return self.title
|
||||||
return self.parent and self.parent.title or ""
|
return self.parent and self.parent.title or ""
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user