order = Order.objects.get(id = order_id)
master_list = Master.objects.filter(work = order.work.all())
master1 = ["s", "p", "c"]
master2 = ["d", "a", "s"]
master3 = ["p", "c", "a"]
k = ["s","p"] # критерии которые все должны содержаться в списке
print filter(lambda m:len(set(m) - set(k)) == len(m)-len(k), [master1, master2, master3])