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:
committed by
Tim Graham
parent
e86f4786a7
commit
5df0ff4155
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user