瀏覽代碼

Refs #25284 -- Corrected an obsolete implicit __in lookup example.

Thanks IRC alias rpkilby for the report.
Simon Charette 8 年之前
父節點
當前提交
9e4fd3301d
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      docs/topics/db/queries.txt

+ 1 - 1
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,
             ),