Remove display_name as required field from User

This commit is contained in:
Kumi 2021-04-14 11:02:06 +02:00
parent 3313a47c72
commit 8594574ebe

View file

@ -46,7 +46,6 @@ class User(AbstractBaseUser):
objects = UserManager() objects = UserManager()
USERNAME_FIELD = 'email' USERNAME_FIELD = 'email'
REQUIRED_FIELDS = ['display_name']
def get_full_name(self): def get_full_name(self):
return self.email return self.email