diff --git a/website/contrib/singleton_page/wagtail_hooks.py b/website/contrib/singleton_page/wagtail_hooks.py index 7fdabee..e9f8cd0 100644 --- a/website/contrib/singleton_page/wagtail_hooks.py +++ b/website/contrib/singleton_page/wagtail_hooks.py @@ -1,5 +1,6 @@ from django.core.cache import cache from wagtail import hooks +from wagtail.models import Page from website.common.utils import get_page_models @@ -7,7 +8,7 @@ from .utils import SingletonPageCache @hooks.register("after_move_page") -def clear_singleton_url_cache(**kwargs: dict) -> None: +def clear_singleton_url_cache(page_to_move: Page) -> None: """ Clear all page caches, in case a parent has moved """