Re: FieldError regarding custom User model which overrides the default auth User model

2020-09-16 Thread coolguy
Could not go through all your attachments but just reviewed few line of your models.py... just my two cents... If you are going to use email for your login then USERNAME_FIELD should carry email not username... USERNAME_FIELD = 'email' On Wednesday, September 16, 2020 at 5:02:35 PM UTC-4 johnr

FieldError regarding custom User model which overrides the default auth User model

2020-09-16 Thread John Reese
In my project I have two apps. Both of these apps require the *email* field not to be blank and one of those apps doesn't need the *first_name* and the *last_name* fields, so I decided to override the default *User* class available from *django.contrib.auth.models*. I did it following this