0
0
mirror of https://github.com/wagtail/wagtail.git synced 2024-11-21 18:09:02 +01:00

Don't fetch entire live revision

This commit is contained in:
Jake Howard 2024-10-29 14:53:00 +00:00 committed by Matt Westcott
parent 9efdadb68a
commit aa1a848bf2

View File

@ -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()