2014-05-05 47 views

回答

0

Q對象呢?

query = reduce(operator.or_, [Q(x=d[0], y=d[1]) for d in [(1, 'a'), (2, 'b')]] 

Table1.objects.filter(query)