2012-08-29 81 views

回答

2

您可以使用Q object並在一行中進行查詢。

from django.db.models import Q 
accounts = Account.objects.filter(Q(some query) | Q(some other query))