Skip to content

Commit

Permalink
User First/Last name and email as optional fields (#310)
Browse files Browse the repository at this point in the history
* Pull first name, last name, and email as required fields, include username

* remove username from required fields
  • Loading branch information
Comeani authored May 30, 2024
1 parent 3793d73 commit feb2025
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion keystone_api/apps/users/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ class User(auth_models.AbstractBaseUser, auth_models.PermissionsMixin):

USERNAME_FIELD = 'username'
EMAIL_FIELD = "email"
REQUIRED_FIELDS = ['email', 'first_name', 'last_name']

username = models.CharField('username', max_length=150, unique=True, validators=[UnicodeUsernameValidator()])
first_name = models.CharField('first name', max_length=150)
Expand Down

0 comments on commit feb2025

Please sign in to comment.