Allow overridden copy() methods in Page subclasseds to be called from the page copy view.

This commit is contained in:
Robert Rollins 2018-10-19 16:05:07 -07:00 committed by Karl Hobley
parent 6baac3473b
commit ebf537a31a

View file

@ -849,7 +849,7 @@ def copy(request, page_id):
can_publish = parent_page.permissions_for_user(request.user).can_publish_subpage()
# Copy the page
new_page = page.copy(
new_page = page.specific.copy(
recursive=form.cleaned_data.get('copy_subpages'),
to=parent_page,
update_attrs={