Re: Model Formsets.save(commit=False) behaviour

2009-05-10 Thread goran
Thanks, I think that it is saving the object twice because when I put a debug print statement like print "Object Saved" in the model's save method, it prints this twice when the code is executed. However, I did go back to it and did an SVN update on django (to 10731), now it appears to be workin

Re: Model Formsets.save(commit=False) behaviour

2009-05-09 Thread Margie
I've used that a lot and never had a problem. I'd recommend stepping through the code. When you call save, you go into the save() function in django/forms/models.py, which immediatey takes you into the save_Instance() method. That code is quite straight forward. At the bottom it just looks at

Model Formsets.save(commit=False) behaviour

2009-05-09 Thread gorans
Hi all, I'm trying to use the .save(commit=False) method on a model formset in my view but for some strange reason, the django code executes the model's save method. My understanding of the docs is that when (commit=False) is passed - the formset will return a list of model instances but not com