summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--docs/topics/db/queries.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/topics/db/queries.txt b/docs/topics/db/queries.txt
index ea203c4ea0..baea7c02ac 100644
--- a/docs/topics/db/queries.txt
+++ b/docs/topics/db/queries.txt
@@ -597,7 +597,7 @@ may not be the same as the entries in the first filter. We are filtering the
that were published in 2008, you need to make two queries::
Blog.objects.exclude(
- entry=Entry.objects.filter(
+ entry__in=Entry.objects.filter(
headline__contains='Lennon',
pub_date__year=2008,
),