1👍
✅
I think what you’re already doing is actually pretty efficient. Django’s query mechanism should collapse those into two SQL queries, one for each filter.
Jamming everything into a single SQL query doesn’t always make it more efficient.
Source:stackexchange.com