kopia lustrzana https://github.com/wagtail/wagtail
docs: update custom_account_settings.rst
Modify CustomSettingsForm import in hooks.py in user model usagepull/7257/head
rodzic
7e41ee8706
commit
212def6aa2
|
@ -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):
|
||||
|
|
Ładowanie…
Reference in New Issue