mirror of
https://github.com/Hopiu/wagtail.git
synced 2026-05-22 05:51:53 +00:00
Allow overridden copy() methods in Page subclasseds to be called from the page copy view.
This commit is contained in:
parent
6baac3473b
commit
ebf537a31a
1 changed files with 1 additions and 1 deletions
|
|
@ -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={
|
||||
|
|
|
|||
Loading…
Reference in a new issue