1👍
✅
Do:
form = MyFormClass(instance=my_object)
Your form will need to be a ModelForm
, see the docs for more information!
Source:stackexchange.com