#19368: Custom User without username and with USERNAME_FIELD = 'email', but still see username error message at the admin login page -------------------------------------+------------------------------------- Reporter: un33k | Owner: nobody Type: | Status: new Cleanup/optimization | Version: 1.5-alpha-1 Component: contrib.admin | Keywords: custom user, Severity: Normal | USERNAME_FIELD, username Triage Stage: Unreviewed | Has patch: 0 Easy pickings: 0 | UI/UX: 1 -------------------------------------+------------------------------------- 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.") -- Ticket URL: <https://code.djangoproject.com/ticket/19368> Django <https://code.djangoproject.com/> The Web framework for perfectionists with deadlines. -- You received this message because you are subscribed to the Google Groups "Django updates" group. To post to this group, send email to django-updates@googlegroups.com. To unsubscribe from this group, send email to django-updates+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.