Omit first_name and last_name in User model

This commit is contained in:
Andrew Chen Wang 2021-01-07 22:27:50 -05:00 committed by GitHub
parent e071a6d66b
commit dce3144b39
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -9,6 +9,8 @@ class User(AbstractUser):
#: First and last name do not cover name patterns around the globe
name = CharField(_("Name of User"), blank=True, max_length=255)
first_name = None
last_name = None
def get_absolute_url(self):
"""Get url for user's detail view.