set has_unpublished_changes=True when making unpublished page copies

This commit is contained in:
Matt Westcott 2014-10-02 17:17:42 +01:00
parent 77d5b7d532
commit 907c76d717

View file

@ -626,7 +626,7 @@ def copy(request, page_id):
# Unpublish copied pages if we need to
if not publish_copies:
new_page.get_descendants(inclusive=True).update(live=False)
new_page.get_descendants(inclusive=True).update(live=False, has_unpublished_changes=True)
# Assign user of this request as the owner of all the new pages
new_page.get_descendants(inclusive=True).update(owner=request.user)