Fix arguments on `after_move_page` hook

This commit is contained in:
Jake Howard 2024-05-04 20:56:23 +01:00
parent ac2ba1ef17
commit 2779a3e97f
Signed by: jake
GPG Key ID: 57AFB45680EDD477
1 changed files with 2 additions and 1 deletions

View File

@ -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
"""