I am trying to work out how to construct a queryset that contains multiple records for a ManyToMany field.
The models are like this: class products(models.Model) name = models.CharField() categories = models.ManyToManyField(Category) class category(models.Model) name = models.Charfield() So a product can be in many categories. I am trying to pull out a list of products with their categories and listing the product multiple times if it is in multiple categories. i.e. product1 - category1 product1 - category2 product2 - category1 Any help always appreciated. Regards Ausi --~--~---------~--~----~------------~-------~--~----~ 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 django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---