Reputation: 133
I want to do following in django:
assuming I have model called Account
accountset1 = Account.objects.filter(some query)
accountset2 = Account.objects.filter(some other query)
accounts = Account.objects.filter("account in either of accountset1 accountset2")
how can I do this
Upvotes: 1
Views: 173