https://stackoverflow.com/questions/17126983/add-data-to-modelform-object-
before-saving
--
Ticket URL: <https://code.djangoproject.com/ticket/31588>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* status: new => closed
* resolution: => invalid
Comment:
Hi. Thanks for the report.
The ''official decision'', the recommended way of doing it is to call
`save()` with `commit=False`, then make your modifications before saving
the instance finally.
This is documented in
[https://docs.djangoproject.com/en/3.0/topics/forms/modelforms/#the-save-
method the save method docs]. See the example there of modifying an author
in this way.
--
Ticket URL: <https://code.djangoproject.com/ticket/31588#comment:1>