Skip to content
Browse files

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

Thanks to Petr Glotov for spotting this.

Backport of 05a8cef from master
  • Loading branch information...
1 parent 996ac76 commit ce4057591adac537038736ee41d084e08eea553e @charettes charettes committed
Showing with 1 addition and 1 deletion.
  1. +1 −1 docs/ref/models/fields.txt
2 docs/ref/models/fields.txt
@@ -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

0 comments on commit ce40575

Please sign in to comment.
Something went wrong with that request. Please try again.