Ticket #11931: fkdocs.diff
File fkdocs.diff, 1.5 KB (added by , 15 years ago) |
---|
-
docs/topics/db/queries.txt
622 622 >>> print [p.headline for p in queryset] # Evaluate the query set. 623 623 >>> print [p.pub_date for p in queryset] # Re-use the cache from the evaluation. 624 624 625 .. _complex_lookups_with_q: 626 625 627 Complex lookups with Q objects 626 628 ============================== 627 629 … … 629 631 you need to execute more complex queries (for example, queries with ``OR`` 630 632 statements), you can use ``Q`` objects. 631 633 632 A ``Q`` object ( ``django.db.models.Q``) is an object used to encapsulate a634 A ``Q`` object (:class:`django.db.models.Q`) is an object used to encapsulate a 633 635 collection of keyword arguments. These keyword arguments are specified as in 634 636 "Field lookups" above. 635 637 -
docs/ref/models/fields.txt
844 844 current date/time to be chosen. 845 845 846 846 Instead of a dictionary this can also be a :class:`~django.db.models.Q` 847 object ( an object with a :meth:`get_sql` method) for more complex queries.847 object (see :ref:`complex_lookups_with_q`) for more complex queries. 848 848 849 849 ``limit_choices_to`` has no effect on the inline FormSets that are created 850 850 to display related objects in the admin.