mirror of
https://github.com/Hopiu/wagtail.git
synced 2026-05-11 16:53:10 +00:00
Add "expired" status to pages
This commit is contained in:
parent
89f2d76bfd
commit
792b37d956
1 changed files with 3 additions and 1 deletions
|
|
@ -544,7 +544,9 @@ class Page(MP_Node, ClusterableModel, Indexed):
|
|||
@property
|
||||
def status_string(self):
|
||||
if not self.live:
|
||||
if self.approved_schedule:
|
||||
if self.expired:
|
||||
return "expired"
|
||||
elif self.approved_schedule:
|
||||
return "scheduled"
|
||||
else:
|
||||
return "draft"
|
||||
|
|
|
|||
Loading…
Reference in a new issue