Get Model instance from Form without saving

Viewed 24263

Let say I have a django ModelForm which I want to edit before saving.

For example,

Instead of this

model_instance = form.save()

I would like to do something like this

model_instance = form.get_model()
model_instance.edit() #say add a new field which is not available on form
model_instance.save()
2 Answers
Related