'An inherited model can be saved as inlines. Regression for #11042'

def test_inherited_inline(self):

    self.post_data[u'fancydoodad_set-0-name'] = u'Fancy    Doodad    1'
    collector_url = (u'/test_admin/admin/admin_views/collector/%d/' % self.collector.pk)
    response = self.client.post(collector_url, self.post_data)
    self.assertEqual(response.status_code, 302)
    self.assertEqual(FancyDoodad.objects.count(), 1)
    self.assertEqual(FancyDoodad.objects.all()[0].name, u'Fancy    Doodad    1')
    doodad_pk = FancyDoodad.objects.all()[0].pk
    response = self.client.get(collector_url)
    self.assertContains(response, u'name="fancydoodad_set-0-doodad_ptr"')
    self.post_data[u'fancydoodad_set-INITIAL_FORMS'] = u'1'
    self.post_data[u'fancydoodad_set-0-doodad_ptr'] = str(doodad_pk)
    self.post_data[u'fancydoodad_set-0-name'] = u'Fancy    Doodad    1'
    response = self.client.post(collector_url, self.post_data)
    self.assertEqual(response.status_code, 302)
    self.assertEqual(FancyDoodad.objects.count(), 1)
    self.assertEqual(FancyDoodad.objects.all()[0].name, u'Fancy    Doodad    1')
    self.post_data[u'fancydoodad_set-INITIAL_FORMS'] = u'1'
    self.post_data[u'fancydoodad_set-0-doodad_ptr'] = str(doodad_pk)
    self.post_data[u'fancydoodad_set-0-name'] = u'Fancy    Doodad    1    Updated'
    response = self.client.post(collector_url, self.post_data)
    self.assertEqual(response.status_code, 302)
    self.assertEqual(FancyDoodad.objects.count(), 1)
    self.assertEqual(FancyDoodad.objects.all()[0].name, u'Fancy    Doodad    1    Updated')
