[Answered ]-In django How to query a model based on already existing queryset of same model

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))
👤Rohan

Leave a comment