I was wondering when the data given to an UpdateView was saved.
I have the following situation: I update a model object via a form. I would expect the changes to the model only to be saved after the UpdateView's form_valid is through. But when I print the object attributes right at the start of form_valid, they have already changed to the new ones inserted into the form.
So when exactly is the change to the model saved and how would I go about if I wanted to do something with the previous values?
I am relatively new to Django and I hope that this question is not too far off track.