2👍
✅
You are looking for for __in
lookup.
You name field is not a container and you’re comparing it with a container. As you can tell, doing the hard work is not as easy, so Django has done it for you with that lookup.
The short version: qs.filter(author__name__in=list_of_authors)
Source:stackexchange.com