mirror of
https://github.com/django/django.git
synced 2025-07-06 18:59:13 +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:
parent
8c10e0d00e
commit
91b1369709
@ -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)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user