Explain what the following Django model code does? What's the relationship between topping and pizza?
class Topping(models.Model):
# ...
class Pizza(models.Model):
# ...
toppings = models.ManyToManyField(Topping)
Explain what the following Django model code does? What's the relationship between topping and pizza?
class Topping(models.Model):
# ...
class Pizza(models.Model):
# ...
toppings = models.ManyToManyField(Topping)