Browse Source

Documentation - update hooks.py to wagtail_hooks.py (#9462)

- Fixes #9453
Precious Arinda 2 years ago
parent
commit
3b6acf036d
1 changed files with 4 additions and 4 deletions
  1. 4 4
      docs/extending/custom_account_settings.md

+ 4 - 4
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