summaryrefslogtreecommitdiff
path: root/docs/ref
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:11:37 -0400
commit0396001830a1e9a8a12e13a8bb7f702c34d57b39 (patch)
tree31b3a68981e2e6f8e5f6a159c6a6cade33ede606 /docs/ref
parent022fdb2ac4a795af0fb1808942b260e2dc3d404d (diff)
[1.7.x] Corrected a usage example of `related_query_name`.
Thanks to Petr Glotov for spotting this. Backport of 05a8cef428 from master
Diffstat (limited to 'docs/ref')
-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 922a5d3653..c99f717a29 100644
--- a/docs/ref/models/fields.txt
+++ b/docs/ref/models/fields.txt
@@ -1173,7 +1173,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