[Fixed]-Saving data from a form submission

1👍

You can call this after checking if the form.is_valid, then send the redirect and let your other view handle the rest. The issue may also be with the accountinfo view, but you didn’t post that code.

owner = form.save()
owner.set_password(owner.password)
owner.save()

0👍

Use the save method on the form to save the data rather than creating a model object once the form is valid. However I see that the template contains additional fields. Do you have something in the valid method?
What is the error that you are getting? are you posting to the correct url?

👤chaos

Leave a comment