Figured it out by looking at how the admin view using
AuthenticationForm:

In POST:

loginForm = AuthenticationForm(data=request.POST)

note the use of data= which I have not seen before

in GET:

 loginForm = AuthenticationForm(request)
        request.session.set_test_cookie()

note the passing of request to the form which is also unusual
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to