Refs #25847 -- Removed support for User.is_(anonymous|authenticated) as methods.

Per deprecation timeline.
This commit is contained in:
Tim Graham 2016-12-31 11:46:40 -05:00
parent b70094f040
commit eba093e8b0
8 changed files with 7 additions and 142 deletions

View file

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