disregard, turns out it is quite simple.
create another mantytomanyfield on the sub model.
class Sub(models.Model):
# ...
toppings = models.ManyToManyField(Topping)
I had this earlier, but got an error. I mis-read it to mean I
couldn't do just this, but turns out I had another issue al
in the documentation the many to many relationship between toppings
and pizzas is well presented (http://docs.djangoproject.com/en/dev/
topics/db/models/#many-to-many-relationships). My question has to do
with something else that would have toppings, subs for example.
If in my toppings model, I'
2 matches
Mail list logo