Display "in moderation" in status string

pull/6257/head
Karl Hobley 2019-11-25 15:45:26 +00:00 zatwierdzone przez Matt Westcott
rodzic ad4009633b
commit a8210d5a38
1 zmienionych plików z 4 dodań i 0 usunięć

Wyświetl plik

@ -1106,11 +1106,15 @@ class Page(AbstractPage, index.Indexed, ClusterableModel, metaclass=PageBase):
return _("expired")
elif self.approved_schedule:
return _("scheduled")
elif self.workflow_in_progress():
return _("in moderation")
else:
return _("draft")
else:
if self.approved_schedule:
return _("live + scheduled")
elif self.workflow_in_progress():
return _("live + in moderation")
elif self.has_unpublished_changes:
return _("live + draft")
else: