1👍
✅
When you call .save(…)
[Django-doc] on a ModelForm
, it will return the instance wrapped in the form, regardless whether commit=True
(this is the case if you do not specify the commit=…
parameter), or commit=False
.
This is often used, for example like in this case where we use the instance of one form, to use this when we work with the second form.
Source:stackexchange.com