I have a query that requires to filter exactly 2 authors with the ID
Theoretically,
Book.objects.filter(author__id=1, author__id=2).
Q objects will help you. Docs
Book.objects.filter(Q(author__id=1) & Q(author__id=2))