summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorFlorian Apolloner <florian@apolloner.eu>2016-05-31 16:54:24 +0200
committerFlorian Apolloner <florian@apolloner.eu>2016-05-31 16:54:24 +0200
commit62e4f8ec435a4b600c8efb071201070a2443477e (patch)
tree05aaa62b611dfe786557b5b3fb4b80c4bd66db24 /docs
parent698c8dfc2a5c5865a8bb163c1ae70b75d53e6415 (diff)
Fixed a typo in the docs.
Diffstat (limited to 'docs')
-rw-r--r--docs/ref/models/querysets.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/ref/models/querysets.txt b/docs/ref/models/querysets.txt
index a13bd7e4c8..e8753971c3 100644
--- a/docs/ref/models/querysets.txt
+++ b/docs/ref/models/querysets.txt
@@ -983,7 +983,7 @@ You can also use the normal join syntax to do related fields of related
fields. Suppose we have an additional model to the example above::
class Restaurant(models.Model):
- pizzas = models.ManyToMany(Pizza, related_name='restaurants')
+ pizzas = models.ManyToManyField(Pizza, related_name='restaurants')
best_pizza = models.ForeignKey(Pizza, related_name='championed_by')
The following are all legal: