mirror of
https://github.com/cookiecutter/cookiecutter-django.git
synced 2025-01-25 00:34:18 +03:00
Omit first_name and last_name in User model
This commit is contained in:
parent
e071a6d66b
commit
dce3144b39
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue
Block a user