[Fixed]-'QueryDict' object has no attribute 'association'

1👍

user is the first parameter to your form, but in your if clause you’re passing it as the second paramter, after request.POST.

Generally you should avoid changing the signature of the form instantiation; instead you should pass the user as a keyword argument and get it from kwargs.

Leave a comment