'select_related() also of course applies to entire lists, not just
items. This test verifies the expected behavior with select_related.'

def test_list_with_select_related(self):

    with self.assertNumQueries(1):
        world = Species.objects.all().select_related()
        families = [o.genus.family.name for o in world]
        self.assertEqual(sorted(families), [u'Amanitacae', u'Drosophilidae', u'Fabaceae', u'Hominidae'])
