mirror of
https://github.com/django/django.git
synced 2025-08-04 02:48:35 +00:00
Refs #25847 -- Removed support for User.is_(anonymous|authenticated) as methods.
Per deprecation timeline.
This commit is contained in:
parent
b70094f040
commit
eba093e8b0
8 changed files with 7 additions and 142 deletions
|
@ -695,11 +695,6 @@ The following attributes and methods are available on any subclass of
|
|||
(representing the currently logged-in user), you should know this
|
||||
attribute is ``True`` for any :class:`~models.User` instance.
|
||||
|
||||
.. versionchanged:: 1.10
|
||||
|
||||
In older versions, this was a method. Backwards-compatibility
|
||||
support for using it as a method will be removed in Django 2.0.
|
||||
|
||||
.. attribute:: models.AbstractBaseUser.is_anonymous
|
||||
|
||||
Read-only attribute which is always ``False``. This is a way of
|
||||
|
@ -707,11 +702,6 @@ The following attributes and methods are available on any subclass of
|
|||
objects. Generally, you should prefer using
|
||||
:attr:`~models.User.is_authenticated` to this attribute.
|
||||
|
||||
.. versionchanged:: 1.10
|
||||
|
||||
In older versions, this was a method. Backwards-compatibility
|
||||
support for using it as a method will be removed in Django 2.0.
|
||||
|
||||
.. method:: models.AbstractBaseUser.set_password(raw_password)
|
||||
|
||||
Sets the user's password to the given raw string, taking care of the
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue