Fix arguments on after_move_page
hook
This commit is contained in:
parent
ac2ba1ef17
commit
2779a3e97f
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
"""
|
||||
|
|
Loading…
Reference in a new issue