From 82701c3c686e9c3d4fd055ae6e0edadb8829779b Mon Sep 17 00:00:00 2001 From: Simon Charette Date: Tue, 15 Nov 2016 08:25:02 -0500 Subject: [PATCH] [1.9.x] Refs #25284 -- Corrected an obsolete implicit __in lookup example. Thanks IRC alias rpkilby for the report. Backport of 9e4fd3301d0a4e40cab8df4b51a2b04274f61da0 from master --- docs/topics/db/queries.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/topics/db/queries.txt b/docs/topics/db/queries.txt index 4c07f21829..64ef6e08cd 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, ),