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

def test_multi_table_inheritance(self):

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