Don't fetch entire live revision

pull/12548/head
Jake Howard 2024-10-29 14:53:00 +00:00 zatwierdzone przez Matt Westcott
rodzic 9efdadb68a
commit aa1a848bf2
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

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