'A select_related() call will fill in those related objects without any
extra queries'

def test_access_fks_with_select_related(self):

    with self.assertNumQueries(1):
        with warnings.catch_warnings():
            warnings.simplefilter(u'ignore', DeprecationWarning)
            person = Species.objects.select_related(depth=10).get(name=u'sapiens')
        domain = person.genus.family.order.klass.phylum.kingdom.domain
        self.assertEqual(domain.name, u'Eukaryota')
