mirror of
https://github.com/Hopiu/wagtail.git
synced 2026-03-16 22:10:28 +00:00
Mention the need to inherit from PermissionsMixin in custom user model docs
This commit is contained in:
parent
dd664218b1
commit
d65532dd0f
1 changed files with 1 additions and 2 deletions
|
|
@ -7,8 +7,7 @@ Custom user forms example
|
|||
This example shows how to add a text field and foreign key field to a custom user model
|
||||
and configure Wagtail user forms to allow the fields values to be updated.
|
||||
|
||||
Create a custom user model. In this case we extend the ``AbstractUser`` class and add
|
||||
two fields. The foreign key references another model (not shown).
|
||||
Create a custom user model. This must at minimum inherit from ``AbstractBaseUser`` and ``PermissionsMixin``. In this case we extend the ``AbstractUser`` class and add two fields. The foreign key references another model (not shown).
|
||||
|
||||
.. code-block:: python
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue