See the example provided for login(), here:
https://docs.djangoproject.com/en/dev/topics/auth/default/#django.contrib.auth.login
It seems to assume that the USERNAME_FIELD is 'username' - ie, that no
custom User model is in place.
I propose adding language here to make it clear that 'username' is
actually USERNAME_FIELD. Without objection, I'm happy to make the
Pull Request.
Thoughts?
--
Justin Holmes
Chief Chocobo Breeder, slashRoot
slashRoot: Coffee House and Tech Dojo
New Paltz, NY 12561
845.633.8330