[Fixed]-How do I prepopulate a form with values from a database in Django?

1👍

You should use an UpdateView, not a FormView. That will take care of prepopulating your form.

Also note you don’t need any of the logic in the post method – that is all taken care of by the generic view class.

Leave a comment