1
0
mirror of https://github.com/django/django.git synced 2025-01-10 10:26:34 +00:00

[1.10.x] Fixed a typo in the docs.

Backport of 62e4f8ec43 from master
This commit is contained in:
Florian Apolloner 2016-05-31 16:54:24 +02:00 committed by Tim Graham
parent ccea4a44c2
commit 7bc199aa64

View File

@ -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: