2👍
✅
You can make use of Q
object and make a query in one line.
from django.db.models import Q
accounts = Account.objects.filter(Q(some query) | Q(some other query))
Source:stackexchange.com