mirror of
https://github.com/django/django.git
synced 2024-12-27 11:35:53 +00:00
[5.0.x] Added missing import in docs/ref/models/expressions.txt.
Backport of e28bd6776d
from main
This commit is contained in:
parent
ae35d5178b
commit
6bf8ca7b16
@ -92,7 +92,7 @@ Some examples
|
||||
>>> Company.objects.order_by("name__length")
|
||||
|
||||
# Boolean expression can be used directly in filters.
|
||||
>>> from django.db.models import Exists
|
||||
>>> from django.db.models import Exists, OuterRef
|
||||
>>> Company.objects.filter(
|
||||
... Exists(Employee.objects.filter(company=OuterRef("pk"), salary__gt=10))
|
||||
... )
|
||||
|
Loading…
Reference in New Issue
Block a user