Author: ubernostrum
Date: 2009-09-23 18:40:12 -0500 (Wed, 23 Sep 2009)
New Revision: 11591
Modified:
django/trunk/docs/ref/models/fields.txt
django/trunk/docs/topics/db/queries.txt
Log:
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.
Modified: django/trunk/docs/ref/models/fields.txt
===================================================================
--- django/trunk/docs/ref/models/fields.txt 2009-09-22 21:21:51 UTC (rev
11590)
+++ django/trunk/docs/ref/models/fields.txt 2009-09-23 23:40:12 UTC (rev
11591)
@@ -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/trunk/docs/topics/db/queries.txt
===================================================================
--- django/trunk/docs/topics/db/queries.txt 2009-09-22 21:21:51 UTC (rev
11590)
+++ django/trunk/docs/topics/db/queries.txt 2009-09-23 23:40:12 UTC (rev
11591)
@@ -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 [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
-~----------~----~----~----~------~----~------~--~---