diff options
author | Florian Apolloner <florian@apolloner.eu> | 2016-05-31 16:54:24 +0200 |
---|---|---|
committer | Florian Apolloner <florian@apolloner.eu> | 2016-05-31 16:57:31 +0200 |
commit | d4ad28dbdd3e7587e67a7ea6558153621fd93b56 (patch) | |
tree | 6403a1328dae0047b55f64e2af61047bd12c08cf | |
parent | 4295848868583d6702f33c5d23148b1845ddacd0 (diff) | |
download | django-d4ad28dbdd3e7587e67a7ea6558153621fd93b56.tar.gz |
[1.8.x] Fixed a typo in the docs.
Backport of 62e4f8ec435a4b600c8efb071201070a2443477e from master.
-rw-r--r-- | docs/ref/models/querysets.txt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/ref/models/querysets.txt b/docs/ref/models/querysets.txt index b0ea47828e..0eee8fcc48 100644 --- a/docs/ref/models/querysets.txt +++ b/docs/ref/models/querysets.txt @@ -977,7 +977,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: |