def test_access_fks_without_select_related(self):
        with self.assertNumQueries(8):
            fly = Species.objects.get(name="melanogaster")
            domain = fly.genus.family.order.klass.phylum.kingdom.domain
            self.assertEqual(domain.name, 'Eukaryota')
Normally, accessing FKs doesn't fill in related objects
dataset/ETHPy150Open AppScale/appscale/AppServer/lib/django-1.4/tests/modeltests/select_related/tests.py/SelectRelatedTests.test_access_fks_without_select_related