Author: ubernostrum
Date: 2009-09-23 18:41:35 -0500 (Wed, 23 Sep 2009)
New Revision: 11592

Modified:
   django/branches/releases/1.1.X/docs/ref/models/fields.txt
   django/branches/releases/1.1.X/docs/topics/db/queries.txt
Log:
[1.1.X] Fixed #11931: Removed mention of nonexistent get_sql() method for 
arguments to limit_choices_to. Since the correct reference involves 
undocumented ORM internals, this simply removes the reference entirely in favor 
of publicly-documented use of Q objects. Backport of [11591] from trunk.

Modified: django/branches/releases/1.1.X/docs/ref/models/fields.txt
===================================================================
--- django/branches/releases/1.1.X/docs/ref/models/fields.txt   2009-09-23 
23:40:12 UTC (rev 11591)
+++ django/branches/releases/1.1.X/docs/ref/models/fields.txt   2009-09-23 
23:41:35 UTC (rev 11592)
@@ -844,7 +844,7 @@
     current date/time to be chosen.
 
     Instead of a dictionary this can also be a :class:`~django.db.models.Q`
-    object (an object with a :meth:`get_sql` method) for more complex queries.
+    object for more :ref:`complex queries <complex-lookups-with-q>`.
 
     ``limit_choices_to`` has no effect on the inline FormSets that are created
     to display related objects in the admin.

Modified: django/branches/releases/1.1.X/docs/topics/db/queries.txt
===================================================================
--- django/branches/releases/1.1.X/docs/topics/db/queries.txt   2009-09-23 
23:40:12 UTC (rev 11591)
+++ django/branches/releases/1.1.X/docs/topics/db/queries.txt   2009-09-23 
23:41:35 UTC (rev 11592)
@@ -622,6 +622,8 @@
     >>> print [p.headline for p in queryset] # Evaluate the query set.
     >>> print [p.pub_date for p in queryset] # Re-use the cache from the 
evaluation.
 
+.. _complex-lookups-with-q:
+
 Complex lookups with Q objects
 ==============================
 


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

Reply via email to