[Django]-Django queryset "contains" for lists, not strings

0👍

If author is an object you should be able to achieve what you want by passing in a field of the author object.

For example

paragraphs.exclude(chapter__book__authors__contains=author.name)
👤Karl

Leave a comment