What's the most efficient way to get all the records from a ManyToMany into a queryset?
To give an example, If I have a model named Events
that has a ManyToMany to a model named Items
and I have a queryset that contains Events
. How do I get the queryset that contains all the Items
that all the Events
in the queryset point on?
If it was a single event, it would be: Events.items.all()
. but this is a queryset so I can't do it.
Thanks