From aa1a848bf2b135c557bb175b4290279e86648659 Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Tue, 29 Oct 2024 14:53:00 +0000 Subject: [PATCH] Don't fetch entire live revision --- wagtail/actions/publish_revision.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wagtail/actions/publish_revision.py b/wagtail/actions/publish_revision.py index 34ecba8c20..503b69c821 100644 --- a/wagtail/actions/publish_revision.py +++ b/wagtail/actions/publish_revision.py @@ -118,7 +118,7 @@ class PublishRevisionAction: # And clear the approved_go_live_at of any other revisions object.revisions.exclude(id=revision.id).update(approved_go_live_at=None) # if we are updating a currently live object skip the rest - if object.live_revision: + if object.live_revision_id: # Log scheduled publishing if log_action: self.log_scheduling_action()