Skip to content

Commit

Permalink
Swapped username field to username rather than email.
Browse files Browse the repository at this point in the history
  • Loading branch information
ajrbyers committed Aug 26, 2020
1 parent 45d9e92 commit 7f5ce75
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -228,8 +228,8 @@ class Account(AbstractBaseUser, PermissionsMixin):

objects = AccountManager()

USERNAME_FIELD = 'email'
REQUIRED_FIELDS = ['username']
USERNAME_FIELD = 'username'
REQUIRED_FIELDS = ['email']

class Meta:
ordering = ('first_name', 'last_name', 'username')
Expand Down

0 comments on commit 7f5ce75

Please sign in to comment.