mirror of
https://github.com/django/django.git
synced 2025-08-03 18:38:50 +00:00
Fixed broken links, round 4. refs #19516
This commit is contained in:
parent
13a2b11425
commit
067505ad19
30 changed files with 162 additions and 156 deletions
|
@ -601,6 +601,8 @@ relation may end up filtering on different linked objects.
|
|||
Filters can reference fields on the model
|
||||
-----------------------------------------
|
||||
|
||||
.. class:: F
|
||||
|
||||
In the examples given so far, we have constructed filters that compare
|
||||
the value of a model field with a constant. But what if you want to compare
|
||||
the value of a model field with another field on the same model?
|
||||
|
@ -755,6 +757,8 @@ To avoid this problem, simply save the
|
|||
Complex lookups with Q objects
|
||||
==============================
|
||||
|
||||
.. class:: Q
|
||||
|
||||
Keyword argument queries -- in :meth:`~django.db.models.query.QuerySet.filter`,
|
||||
etc. -- are "AND"ed together. If you need to execute more complex queries (for
|
||||
example, queries with ``OR`` statements), you can use ``Q`` objects.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue