9
On line 23 of your views.py
you are passing request.user
as the first parameter to the instantiation of LocationForm
.
The first parameter should be request.POST
unless your form has overridden the __init__()
method.
Source:stackexchange.com