Skip to content

Commit

Permalink
fix copy hook
Browse files Browse the repository at this point in the history
  • Loading branch information
Ross-Clark committed Sep 4, 2024
1 parent 61c0c05 commit 2aaa478
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions streamfieldindex/wagtail_hooks.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ def index_after_edit_page(request, page):


@hooks.register("after_copy_page")
def index_after_copy_page(request, page):
index_page(page)
def index_after_copy_page(request, page, new_page):
index_page(new_page)


def index_unpublished(sender, instance, **kwargs):
Expand Down

0 comments on commit 2aaa478

Please sign in to comment.