[Answer]-Django Query filltering on ManyToManyField

1👍

Using chain filters?

tasks = taskInQueue.objects.all()
for sim in sims:
    tasks = tasks.filter(simInvolved=sim)

# in the end tasks will only contains those tasks which required all sims

Leave a comment