mirror of
https://github.com/django/django.git
synced 2024-12-25 02:26:12 +00:00
[5.0.x] Improved wording in auth.models.User field docs.
Co-authored-by: Lily Foote <code@lilyf.org>
Backport of 79099a7ba4
from main
This commit is contained in:
parent
471fa926ea
commit
b8a476b745
@ -67,14 +67,14 @@ Fields
|
|||||||
|
|
||||||
.. attribute:: is_staff
|
.. attribute:: is_staff
|
||||||
|
|
||||||
Boolean. Designates whether this user can access the admin site.
|
Boolean. Allows this user to access the admin site.
|
||||||
|
|
||||||
.. attribute:: is_active
|
.. attribute:: is_active
|
||||||
|
|
||||||
Boolean. Designates whether this user account should be considered
|
Boolean. Marks this user account as active. We recommend that you set
|
||||||
active. We recommend that you set this flag to ``False`` instead of
|
this flag to ``False`` instead of deleting accounts. That way, if your
|
||||||
deleting accounts; that way, if your applications have any foreign keys
|
applications have any foreign keys to users, the foreign keys won't
|
||||||
to users, the foreign keys won't break.
|
break.
|
||||||
|
|
||||||
This doesn't necessarily control whether or not the user can log in.
|
This doesn't necessarily control whether or not the user can log in.
|
||||||
Authentication backends aren't required to check for the ``is_active``
|
Authentication backends aren't required to check for the ``is_active``
|
||||||
@ -94,8 +94,8 @@ Fields
|
|||||||
|
|
||||||
.. attribute:: is_superuser
|
.. attribute:: is_superuser
|
||||||
|
|
||||||
Boolean. Designates that this user has all permissions without
|
Boolean. Treats this user as having all permissions without assigning
|
||||||
explicitly assigning them.
|
any permission to it in particular.
|
||||||
|
|
||||||
.. attribute:: last_login
|
.. attribute:: last_login
|
||||||
|
|
||||||
@ -103,8 +103,7 @@ Fields
|
|||||||
|
|
||||||
.. attribute:: date_joined
|
.. attribute:: date_joined
|
||||||
|
|
||||||
A datetime designating when the account was created. Is set to the
|
The date/time when the account was created.
|
||||||
current date/time by default when the account is created.
|
|
||||||
|
|
||||||
Attributes
|
Attributes
|
||||||
----------
|
----------
|
||||||
|
Loading…
Reference in New Issue
Block a user