From 8f72b2e6e33f06908f325ac6ceb7218c38b970d4 Mon Sep 17 00:00:00 2001 From: Karl Hobley Date: Thu, 30 Oct 2014 09:33:54 +0000 Subject: [PATCH] Don't clobber latest_revision_created_at Fixes #756 This field was being set to None whenever a revision was pushed live --- wagtail/wagtailcore/models.py | 1 + 1 file changed, 1 insertion(+) diff --git a/wagtail/wagtailcore/models.py b/wagtail/wagtailcore/models.py index 43f09d5b3b..e1beb657bf 100644 --- a/wagtail/wagtailcore/models.py +++ b/wagtail/wagtailcore/models.py @@ -1034,6 +1034,7 @@ class PageRevision(models.Model): obj.has_unpublished_changes = self.page.has_unpublished_changes obj.owner = self.page.owner obj.locked = self.page.locked + obj.latest_revision_created_at = self.page.latest_revision_created_at return obj