Re: AuthenticationForm 'data' keyword argument?

2019-02-14 Thread james . peter . schinner
So I should be using: form = AuthenticatioForm(request) It seems odd that the signature for various form aren't the same, at least in respect to *args. **kwags I can understand being different. Regardless I wanted to highlight a gotcha that wasn't immediately obvious. Also, I received no erro

Re: AuthenticationForm 'data' keyword argument?

2019-02-14 Thread Tim Graham
>From the docs for AuthenticationForm: "Takes request as its first positional argument, which is stored on the form instance for use by sub-classes." https://docs.djangoproject.com/en/dev/topics/auth/default/#django.contrib.auth.forms.AuthenticationForm On Thursday, February 14, 2019 at 7:47:23

AuthenticationForm 'data' keyword argument?

2019-02-14 Thread james . peter . schinner
Hi, I have just been following the Django documention on forms: https://docs.djangoproject.com/en/2.1/topics/forms/ And I was having an issue with validating the posted data in the view code. I came across this Stack Overflow post : https://stackoverflow.com/questions/45824046/djangos-authent