1
0
mirror of https://github.com/django/django.git synced 2024-12-22 17:16:24 +00:00

Added missing import in docs/ref/models/expressions.txt.

This commit is contained in:
Viicos 2023-12-15 11:17:06 +01:00 committed by GitHub
parent 86c45d8bc6
commit e28bd6776d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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