docs: update custom_account_settings.rst

Modify CustomSettingsForm import in hooks.py in user model usage
pull/7257/head
Godswill Melford 2021-06-16 08:34:53 +00:00 zatwierdzone przez Matt Westcott
rodzic 7e41ee8706
commit 212def6aa2
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -34,7 +34,7 @@ Here is an example of how to add a new form that operates on the user model:
from wagtail.admin.views.account import BaseSettingsPanel
from wagtail.core import hooks
from .forms import CustomProfileSettingsForm
from .forms import CustomSettingsForm
@hooks.register('register_account_settings_panel')
class CustomSettingsPanel(BaseSettingsPanel):