'Make sure inlineformsets respect commit=False
regression for #10750'

def test_save_new(self):

    ChildFormSet = inlineformset_factory(School, Child, exclude=[u'father', u'mother'])
    school = School.objects.create(name=u'test')
    mother = Parent.objects.create(name=u'mother')
    father = Parent.objects.create(name=u'father')
    data = {u'child_set-TOTAL_FORMS': u'1', u'child_set-INITIAL_FORMS': u'0', u'child_set-MAX_NUM_FORMS': u'0', u'child_set-0-name': u'child'}
    formset = ChildFormSet(data, instance=school)
    self.assertEqual(formset.is_valid(), True)
    objects = formset.save(commit=False)
    for obj in objects:
        obj.mother = mother
        obj.father = father
        obj.save()
    self.assertEqual(school.child_set.count(), 1)
