From 7bc199aa6440b7f527c46a15dd40a48f845a8497 Mon Sep 17 00:00:00 2001 From: Florian Apolloner Date: Tue, 31 May 2016 16:54:24 +0200 Subject: [PATCH] [1.10.x] Fixed a typo in the docs. Backport of 62e4f8ec435a4b600c8efb071201070a2443477e from master --- docs/ref/models/querysets.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/ref/models/querysets.txt b/docs/ref/models/querysets.txt index f9e13bdf06..8ce6d501ce 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: