From 77d5b7d53257637d2b317f6c640cbc5125a6a876 Mon Sep 17 00:00:00 2001 From: Matt Westcott Date: Thu, 2 Oct 2014 17:13:11 +0100 Subject: [PATCH] Set has_unpublished_changes=True on unpublish --- wagtail/wagtailcore/models.py | 1 + 1 file changed, 1 insertion(+) diff --git a/wagtail/wagtailcore/models.py b/wagtail/wagtailcore/models.py index 61005eb84..4ec00ef94 100644 --- a/wagtail/wagtailcore/models.py +++ b/wagtail/wagtailcore/models.py @@ -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