summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--django/contrib/auth/base_user.py4
-rw-r--r--docs/ref/contrib/auth.txt4
2 files changed, 2 insertions, 6 deletions
diff --git a/django/contrib/auth/base_user.py b/django/contrib/auth/base_user.py
index a165677f4c..7e3161bd98 100644
--- a/django/contrib/auth/base_user.py
+++ b/django/contrib/auth/base_user.py
@@ -116,9 +116,7 @@ class AbstractBaseUser(models.Model):
def has_usable_password(self):
"""
- Return False if set_unusable_password() has been called for this user,
- or if the password is None, or if the password uses a hasher that's not
- in the PASSWORD_HASHERS setting.
+ Return False if set_unusable_password() has been called for this user.
"""
return is_password_usable(self.password)
diff --git a/docs/ref/contrib/auth.txt b/docs/ref/contrib/auth.txt
index a55ee4c675..b4b407272a 100644
--- a/docs/ref/contrib/auth.txt
+++ b/docs/ref/contrib/auth.txt
@@ -212,9 +212,7 @@ Methods
Returns ``False`` if
:meth:`~django.contrib.auth.models.User.set_unusable_password()` has
- been called for this user, or if the password is ``None``, or if the
- password uses a hasher that's not in the :setting:`PASSWORD_HASHERS`
- setting.
+ been called for this user.
.. method:: get_group_permissions(obj=None)