From 9efdadb68a00a9b0aac5df51d187b8a9f4e32ef4 Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Tue, 29 Oct 2024 14:51:32 +0000 Subject: [PATCH] Only update changed field --- 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 5d27f738ca..34ecba8c20 100644 --- a/wagtail/actions/publish_revision.py +++ b/wagtail/actions/publish_revision.py @@ -114,7 +114,7 @@ class PublishRevisionAction: object.has_unpublished_changes = True # Instead set the approved_go_live_at of this revision revision.approved_go_live_at = object.go_live_at - revision.save() + revision.save(update_fields=["approved_go_live_at"]) # 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