summaryrefslogtreecommitdiff
path: root/django/contrib/auth/base_user.py
diff options
context:
space:
mode:
authorJosh Schneier <josh.schneier@gmail.com>2017-04-19 13:02:55 -0400
committerTim Graham <timograham@gmail.com>2017-05-06 17:05:42 -0400
commit5df0ff4155d2ee3192768e8f7f75b546f98c3f77 (patch)
tree2c3b09dce5bc2dc1fc674b559915ee057ba1daa0 /django/contrib/auth/base_user.py
parente86f4786a7f39b0ed833c0699addf0c27811d864 (diff)
Fixed #28089 -- Removed requirement to implement get_short_name() and get_full_name() in AbstractBaseUser subclasses.
Diffstat (limited to 'django/contrib/auth/base_user.py')
-rw-r--r--django/contrib/auth/base_user.py6
1 files changed, 0 insertions, 6 deletions
diff --git a/django/contrib/auth/base_user.py b/django/contrib/auth/base_user.py
index 34dd6ac2f2..cf3c71d751 100644
--- a/django/contrib/auth/base_user.py
+++ b/django/contrib/auth/base_user.py
@@ -119,12 +119,6 @@ class AbstractBaseUser(models.Model):
def has_usable_password(self):
return is_password_usable(self.password)
- def get_full_name(self):
- raise NotImplementedError('subclasses of AbstractBaseUser must provide a get_full_name() method')
-
- def get_short_name(self):
- raise NotImplementedError('subclasses of AbstractBaseUser must provide a get_short_name() method.')
-
def get_session_auth_hash(self):
"""
Return an HMAC of the password field.