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

- Fixes #9453
pull/9431/head
Precious Arinda 2022-10-25 14:40:51 +03:00 zatwierdzone przez GitHub
rodzic b995339069
commit 3b6acf036d
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
1 zmienionych plików z 4 dodań i 4 usunięć

Wyświetl plik

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