From 2aaa478af58ec40f22013633cb033f77ed08959e Mon Sep 17 00:00:00 2001 From: Ross Clark Date: Wed, 4 Sep 2024 14:59:37 +0100 Subject: [PATCH] fix copy hook --- streamfieldindex/wagtail_hooks.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/streamfieldindex/wagtail_hooks.py b/streamfieldindex/wagtail_hooks.py index 18bc98d..a1d4920 100644 --- a/streamfieldindex/wagtail_hooks.py +++ b/streamfieldindex/wagtail_hooks.py @@ -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):