summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Charette <charette.s@gmail.com>2014-08-29 23:06:31 -0400
committerSimon Charette <charette.s@gmail.com>2014-08-29 23:12:24 -0400
commitce4057591adac537038736ee41d084e08eea553e (patch)
tree15cc7ad691cfe145a898bf6b71799835723f381a
parent996ac768e3e5df837b19881ddd9e6e1a91709e22 (diff)
[1.6.x] Corrected a usage example of `related_query_name`.
Thanks to Petr Glotov for spotting this. Backport of 05a8cef428 from master
-rw-r--r--docs/ref/models/fields.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/ref/models/fields.txt b/docs/ref/models/fields.txt
index c3317ff7c1..122610a0d5 100644
--- a/docs/ref/models/fields.txt
+++ b/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