Author: mtredinnick
Date: 2007-10-15 01:51:37 -0500 (Mon, 15 Oct 2007)
New Revision: 6522

Modified:
   django/branches/queryset-refactor/tests/modeltests/select_related/models.py
Log:
queryset-refactor: Fixed a broken select_related test from [6521].


Modified: 
django/branches/queryset-refactor/tests/modeltests/select_related/models.py
===================================================================
--- django/branches/queryset-refactor/tests/modeltests/select_related/models.py 
2007-10-15 05:51:19 UTC (rev 6521)
+++ django/branches/queryset-refactor/tests/modeltests/select_related/models.py 
2007-10-15 06:51:37 UTC (rev 6522)
@@ -100,7 +100,7 @@
 
 # However, a select_related() call will fill in those related objects without 
any extra 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
 <Domain: Eukaryota>
 >>> len(db.connection.queries)


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to