From 6bf8ca7b1677555e5b446cf56929ceeed19bdb14 Mon Sep 17 00:00:00 2001 From: Viicos <65306057+Viicos@users.noreply.github.com> Date: Fri, 15 Dec 2023 11:17:06 +0100 Subject: [PATCH] [5.0.x] Added missing import in docs/ref/models/expressions.txt. Backport of e28bd6776dfedc1ad4dce4719e4303ca34019a83 from main --- docs/ref/models/expressions.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)) ... )