mirror of
https://github.com/Hopiu/wagtail.git
synced 2026-05-12 09:13:14 +00:00
Set has_unpublished_changes=True on unpublish
This commit is contained in:
parent
5a64063e1c
commit
77d5b7d532
1 changed files with 1 additions and 0 deletions
|
|
@ -428,6 +428,7 @@ class Page(six.with_metaclass(PageBase, MP_Node, ClusterableModel, index.Indexed
|
|||
def unpublish(self, set_expired=False, commit=True):
|
||||
if self.live:
|
||||
self.live = False
|
||||
self.has_unpublished_changes = True
|
||||
|
||||
if set_expired:
|
||||
self.expired = True
|
||||
|
|
|
|||
Loading…
Reference in a new issue