31👍
✅
If your ModelForm was initialized with an instance of a Model, then you can access it through the instance
attribute. From the ModelForm docs:
Also, a model form instance bound to a model object will contain a self.instance attribute that gives model form methods access to that specific model instance.
👤ars
Source:stackexchange.com