'Ensure that an object can be created with inlines when it inherits
another class. Bug #19524.'

def test_create_inlines_on_inherited_model(self):

    data = {u'name': u'Martian', u'sighting_set-TOTAL_FORMS': 1, u'sighting_set-INITIAL_FORMS': 0, u'sighting_set-MAX_NUM_FORMS': 0, u'sighting_set-0-place': u'Zone    51', u'_save': u'Save'}
    response = self.client.post(u'/admin/admin_inlines/extraterrestrial/add/', data)
    self.assertEqual(response.status_code, 302)
    self.assertEqual(Sighting.objects.filter(et__name=u'Martian').count(), 1)
