4
class Topping(models.Model):
name = models.CharField(max_length=30)
class Pizza(models.Model):
name = models.CharField(max_length=50)
toppings = models.ManyToManyField(Topping)
是否可以選擇比薩餅和他們的澆頭,但只有那些比薩餅,有一定數量的澆頭,如0,1,2?在django中過濾prefetch_related空