mirror of
https://github.com/django/django.git
synced 2025-08-04 02:48:35 +00:00
Fixed a typo in the docs.
This commit is contained in:
parent
698c8dfc2a
commit
62e4f8ec43
1 changed files with 1 additions and 1 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue