浏览代码

Corrected a usage example of `related_query_name`.

Thanks to Petr Glotov for spotting this.
Simon Charette 10 年之前
父节点
当前提交
05a8cef428
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      docs/ref/models/fields.txt

+ 1 - 1
docs/ref/models/fields.txt

@@ -1167,7 +1167,7 @@ define the details of how the relation works.
             name = models.CharField(max_length=255)
             name = models.CharField(max_length=255)
 
 
         # That's now the name of the reverse filter
         # That's now the name of the reverse filter
-        article_instance.filter(tag__name="important")
+        Article.objects.filter(tag__name="important")
 
 
 .. attribute:: ForeignKey.to_field
 .. attribute:: ForeignKey.to_field