#10284: ModelFormSet - objects are deleted even if commit=False
---------------------------------------------------------+------------------
          Reporter:  [email protected]  |         Owner:  
nobody
            Status:  new                                 |     Milestone:       
 
         Component:  Forms                               |       Version:  1.0  
 
        Resolution:                                      |      Keywords:       
 
             Stage:  Design decision needed              |     Has_patch:  1    
 
        Needs_docs:  0                                   |   Needs_tests:  0    
 
Needs_better_patch:  0                                   |  
---------------------------------------------------------+------------------
Comment (by Wedg):

 I'm also not understanding why the patch won't work - do we need to
 document the fact that if you call formset.save(commit=False) you'd need
 to call delete() for each instance in the formset.deleted_objects just
 like you'd have to call save() for other changed/new instances? (If the
 patch were applied...)

 From what I can tell, this is all that's happening in the
 BaseModelFormSet.save_existing_objects method, and all the objects that
 would have delete() called are stored in formset.deleted_objects.

-- 
Ticket URL: <http://code.djangoproject.com/ticket/10284#comment:3>
Django <http://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.

Reply via email to