Anonymous user
Django for Designers/Adding models: Difference between revisions
m
fixed a minor typo.
imported>Paulproteus |
imported>Strixcuriosus m (fixed a minor typo.) |
||
Line 67:
<div class="instructor">The tag slug is stored in another CharField, which we've seen before. But what's this ManyToManyField? Well, it's one type of field for denoting a relationship between two models.
In relational databases, there
With a ManyToManyField, on the other hand, the relationship isn't exclusive for either of the models involved. For instance, you could imagine having a Pizza model and a Topping model. Each Pizza can have multiple Toppings, and each Topping can be on multiple Pizzas.
|