2014-05-05 30 views

回答

0

使用__in表達

b = Box.objects.filter(my_custom_item__id__in=[i,]) 
0

在短短的一個查詢:

b = Box.objects.filter(my_custom_item__id=1)