Custom User without username and with USERNAME_FIELD = 'email', but still see username error message at the admin login page
|Reported by:||Val Neekman||Owned by:||nobody|
|Severity:||Release blocker||Keywords:||custom user, USERNAME_FIELD, username|
|Cc:||Triage Stage:||Ready for checkin|
|Has patch:||yes||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
Have a custom user with no username and have set USERNAME_FIELD = 'email'.
All works great, however, the error messages are still pointing to the username even though the custom user had no username field.
Here is where the error message comes from.
ERROR_MESSAGE = ugettext_lazy("Please enter the correct username and password "
"for a staff account. Note that both fields are case-sensitive.")