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
Source:stackexchange.com
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