From 3b6acf036dfe5201e74f7d573c2c816a22f48377 Mon Sep 17 00:00:00 2001 From: Precious Arinda <115741895+PreciousArinda@users.noreply.github.com> Date: Tue, 25 Oct 2022 14:40:51 +0300 Subject: [PATCH] Documentation - update hooks.py to wagtail_hooks.py (#9462) - Fixes #9453 --- docs/extending/custom_account_settings.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/extending/custom_account_settings.md b/docs/extending/custom_account_settings.md index f779ba49d8..695475ff19 100644 --- a/docs/extending/custom_account_settings.md +++ b/docs/extending/custom_account_settings.md @@ -27,7 +27,7 @@ class CustomSettingsForm(forms.ModelForm): ``` ```python -# hooks.py +# wagtail_hooks.py from wagtail.admin.views.account import BaseSettingsPanel from wagtail import hooks @@ -70,7 +70,7 @@ class CustomProfileSettingsForm(forms.ModelForm): ``` ```python -# hooks.py +# wagtail_hooks.py from wagtail.admin.views.account import BaseSettingsPanel from wagtail import hooks @@ -90,7 +90,7 @@ class CustomSettingsPanel(BaseSettingsPanel): You can define a new tab using the `SettingsTab` class: ```python -# hooks.py +# wagtail_hooks.py from wagtail.admin.views.account import BaseSettingsPanel, SettingsTab from wagtail import hooks @@ -118,7 +118,7 @@ class CustomSettingsPanel(BaseSettingsPanel): You can provide a custom template for the panel by specifying a template name: ```python -# hooks.py +# wagtail_hooks.py from wagtail.admin.views.account import BaseSettingsPanel from wagtail import hooks