1
0
mirror of https://github.com/django/django.git synced 2025-10-24 22:26:08 +00:00

Fixed #28089 -- Removed requirement to implement get_short_name() and get_full_name() in AbstractBaseUser subclasses.

This commit is contained in:
Josh Schneier
2017-04-19 13:02:55 -04:00
committed by Tim Graham
parent e86f4786a7
commit 5df0ff4155
5 changed files with 24 additions and 45 deletions

View File

@@ -27,11 +27,5 @@ with RemoveGroupsAndPermissions():
USERNAME_FIELD = 'email'
REQUIRED_FIELDS = ['date_of_birth']
def get_full_name(self):
return self.email
def get_short_name(self):
return self.email
def __str__(self):
return self.email