1
0
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:
Viicos 2023-12-15 11:17:06 +01:00 committed by Mariusz Felisiak
parent ae35d5178b
commit 6bf8ca7b16

View File

@ -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))
... )