2012-08-29 152 views

回答

2

您可以使用Q object并在一行中进行查询。

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