Having: _______________ class Pizza(models.Model): name = models.TextField() toppings = models.ManyToManyField(Topping)
class Topping(models.Model): name = models.TextField() _______________ ...and for instance having toppings 'tomato' and 'cheese', how do I select all pizza's with BOTH toppings? I would say by using a filter chain, such as: _______________ Pizza.objects.filter(topping=topping_tomato).filter(topping=topping_cheese) (where topping_tomato and topping_cheese are topping instances. _______________ ...but although each individual filter returns a result the chain returns an empty list. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users -~----------~----~----~----~------~----~------~--~---