human
How to do many-to-many Django query to find book with 2 given authors?
assistant
Here is some code to filter Django objects by `author` with ids `1` and `2`

Book.objects.filter(author__id=1).filter(author__id=2)

#Warning: this code generation is experimental. Please inspect the code for any bugs before executing.