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:
parent
9efdadb68a
commit
aa1a848bf2
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user