1👍
✅
You can implement two JOIN
s by using two .filter(…)
clauses [Django-doc], and thus filter with:
User.objects.filter(groups=a).filter(groups=b)
Source:stackexchange.com