Add "expired" status to pages

This commit is contained in:
Serafeim Papastefanos 2014-04-21 18:08:47 +03:00
parent 89f2d76bfd
commit 792b37d956

View file

@ -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"