mirror of
https://github.com/django/django.git
synced 2025-07-19 09:09:13 +00:00
[1.8.x] Fixed a typo in the docs.
Backport of 62e4f8ec435a4b600c8efb071201070a2443477e from master.
This commit is contained in:
parent
4295848868
commit
d4ad28dbdd
@ -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::
|
fields. Suppose we have an additional model to the example above::
|
||||||
|
|
||||||
class Restaurant(models.Model):
|
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')
|
best_pizza = models.ForeignKey(Pizza, related_name='championed_by')
|
||||||
|
|
||||||
The following are all legal:
|
The following are all legal:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user