1
0
mirror of https://github.com/django/django.git synced 2025-07-06 10:49:17 +00:00

queryset-refactor: Fixed a broken select_related test from [6521].

git-svn-id: http://code.djangoproject.com/svn/django/branches/queryset-refactor@6522 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Malcolm Tredinnick 2007-10-15 06:51:37 +00:00
parent 8c10e0d00e
commit 91b1369709

View File

@ -100,7 +100,7 @@ __test__ = {'API_TESTS':"""
# However, a select_related() call will fill in those related objects without any extra queries: # However, a select_related() call will fill in those related objects without any extra queries:
>>> db.reset_queries() >>> db.reset_queries()
>>> person = Species.objects.select_related().get(name="sapiens") >>> person = Species.objects.select_related(depth=10).get(name="sapiens")
>>> person.genus.family.order.klass.phylum.kingdom.domain >>> person.genus.family.order.klass.phylum.kingdom.domain
<Domain: Eukaryota> <Domain: Eukaryota>
>>> len(db.connection.queries) >>> len(db.connection.queries)