Mymodelform' Object Has No Attribute 'user Using Django
i want to create i simple django image processing .first i have create correct a django auth and multi upload images in my app. now i want the user can select one self image from a
Solution 1:
Your MyForm
class does not have user
in the __init__
method's signature, so you need to provide it as a keyword argument when instantiating the form:
MyForm(user=request.user,data=request.POST)
Post a Comment for "Mymodelform' Object Has No Attribute 'user Using Django"