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