Re: login() documentation assumes no custom auth.User model

2014-07-30 Thread Marc Tamlyn
`authenticate()` is actually more general than that - it takes **kwargs depending on the auth backend. Might want to make things clearer in the docs for that though. Marc On 30 July 2014 16:15, Justin Holmes wrote: > See the example provided for login(), here: > > > https://docs.djangoproject.

login() documentation assumes no custom auth.User model

2014-07-30 Thread Justin Holmes
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' i