'Exercising select_related() with multi-table model inheritance.'

def test_multi_table_inheritance(self):

    c1 = Child.objects.create(name=u'child1', value=42)
    i1 = Item.objects.create(name=u'item1', child=c1)
    i2 = Item.objects.create(name=u'item2')
    self.assertQuerysetEqual(Item.objects.select_related(u'child').order_by(u'name'), [u'<Item:    item1>', u'<Item:    item2>'])
