Error 'nonetype' Object Has No Attribute '__dict__'
I have encoutered this error and its not letting me save the info in the form. The initial data is showing well in the form but saving is challenging me. Hope someone can help, I'm
Solution 1:
You have overridden the form_valid
method but haven't done any of the default actions performed by that method, in particular saving the object.
You could fix this by calling the super method, but there is no point; redirecting to the success url is what that method does anyway. Remove your form_valid
method altogether and let the existing definition be called.
Post a Comment for "Error 'nonetype' Object Has No Attribute '__dict__'"