diff --git a/docs/ref/models/expressions.txt b/docs/ref/models/expressions.txt index a5edfa550a..d2aeb1dcaf 100644 --- a/docs/ref/models/expressions.txt +++ b/docs/ref/models/expressions.txt @@ -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)) ... )