Skip to content

Commit

Permalink
Fix email addition code
Browse files Browse the repository at this point in the history
  • Loading branch information
dtcooper committed Sep 30, 2024
1 parent 7e5731f commit 19996b6
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions server/tomato/models/user.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,9 @@ class User(DirtyFieldsMixin, AbstractUser):
" enabled, but for test accounts you may not want to pollute the client logs."
),
)
is_staff = True
first_name = None
last_name = None
date_joined = None
REQUIRED_FIELDS = ()
REMOVED_FIELDS = ("is_staff", "first_name", "last_name", "email", "date_joined")
is_staff = True # All accounts, necessarily staff
first_name = last_name = date_joined = None
REMOVED_FIELDS = ("is_staff", "first_name", "last_name", "date_joined")

class Meta:
db_table = "users"
Expand Down

0 comments on commit 19996b6

Please sign in to comment.