[Fixed]-Attribute error for PersonalInfoForm

1👍

Your traceback is showing that you haven’t used the view above at all, but the form. Presumably you’ve assigned the wrong thing in urls.py.

Edit Actually the problem is that your post method, when the form is not valid, returns the form itself and not an HttpResponse.

However you should not be defining any of these methods. You are just replicating what the class-based views are already supposed to be doing for you. Make your view actually inherit from CreateView and remove all those method definitions completely.

Leave a comment