How to query the implicit through table in django (ManyToMany field)?
In your case it'll be like Group.members.through.objects.all()
I.e. Group.members.through
returns a model class like <class 'appname.models.Group_person'>
But I am still not sure that this will make your query more effective. You always can filter on one table, then filter its members or persons.