0
0
mirror of https://github.com/wagtail/wagtail.git synced 2024-12-01 03:31:04 +01:00

Mention the need to inherit from PermissionsMixin in custom user model docs

This commit is contained in:
Matt Westcott 2019-11-28 12:35:30 +00:00
parent dd664218b1
commit d65532dd0f

View File

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