mirror of
https://github.com/django/django.git
synced 2025-09-26 12:09:19 +00:00
Fixed #19061 -- added is_active attribute to AbstractBaseUser
This commit is contained in:
parent
f1cc2be0c5
commit
4ea8105120
5 changed files with 64 additions and 2 deletions
|
@ -1911,6 +1911,15 @@ password resets. You must then provide some key implementation details:
|
|||
``REQUIRED_FIELDS`` must contain all required fields on your User
|
||||
model, but should *not* contain the ``USERNAME_FIELD``.
|
||||
|
||||
.. attribute:: User.is_active
|
||||
|
||||
A boolean attribute that indicates whether the user is considered
|
||||
"active". This attribute is provided as an attribute on
|
||||
``AbstractBaseUser`` defaulting to ``True``. How you choose to
|
||||
implement it will depend on the details of your chosen auth backends.
|
||||
See the documentation of the :attr:`attribute on the builtin user model
|
||||
<django.contrib.auth.models.User.is_active>` for details.
|
||||
|
||||
.. method:: User.get_full_name():
|
||||
|
||||
A longer formal identifier for the user. A common interpretation
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue