Re: Question re django.forms.models.BaseModelFormSet.save_existing_objects()

2015-12-21 Thread Mike Dewhirst
On 22/12/2015 4:22 AM, Tim Graham wrote: Hi Mike, see if the documentation at the bottom of https://docs.djangoproject.com/en/stable/topics/forms/formsets/#django.forms.formsets.BaseFormSet.can_delete helps. Yes it does. Thank you Tim. "If you call formset.save(commit=False), objects will not

Re: Question re django.forms.models.BaseModelFormSet.save_existing_objects()

2015-12-21 Thread Tim Graham
Hi Mike, see if the documentation at the bottom of https://docs.djangoproject.com/en/stable/topics/forms/formsets/#django.forms.formsets.BaseFormSet.can_delete helps. On Monday, December 21, 2015 at 4:00:36 AM UTC-5, James Schneider wrote: > > > > That is true. However, if commit was False

Re: Question re django.forms.models.BaseModelFormSet.save_existing_objects()

2015-12-21 Thread James Schneider
> That is true. However, if commit was False that object wouldn't be deleted but it would still appear in the self.deleted_objects list. My concern - or more accurately lack of understanding - is that the object would remain in existence AND appear in the deleted list. This was precisely what

Re: Question re django.forms.models.BaseModelFormSet.save_existing_objects()

2015-12-20 Thread Mike Dewhirst
On 21/12/2015 6:10 PM, James Schneider wrote: I have just been digging into django.forms.models.py to debug my own code and found something which confuses me in both 1.8 and 1.9 django.forms.models.BaseModelFormSet.save_existing_objects() puts

Re: Question re django.forms.models.BaseModelFormSet.save_existing_objects()

2015-12-20 Thread James Schneider
> > I have just been digging into django.forms.models.py to debug my own code > and found something which confuses me in both 1.8 and 1.9 > > django.forms.models.BaseModelFormSet.save_existing_objects() puts objects > (child model instances) into the BaseModelFormSet.deleted_objects list > whether

Question re django.forms.models.BaseModelFormSet.save_existing_objects()

2015-12-20 Thread Mike Dewhirst
I have just been digging into django.forms.models.py to debug my own code and found something which confuses me in both 1.8 and 1.9 django.forms.models.BaseModelFormSet.save_existing_objects() puts objects (child model instances) into the BaseModelFormSet.deleted_objects list whether they are