[1.6.x] Corrected a usage example of `related_query_name`.

Thanks to Petr Glotov for spotting this.

Backport of 05a8cef428 from master
This commit is contained in:
Simon Charette 2014-08-29 23:06:31 -04:00
parent 996ac768e3
commit ce4057591a
1 changed files with 1 additions and 1 deletions

View File

@ -1110,7 +1110,7 @@ define the details of how the relation works.
name = models.CharField(max_length=255)
# 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