[Django]-Error with Django User : "AttributeError: 'User' object has no attribute 'get' "

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.

Leave a comment