1👍
✅
You can use distinct()
which will give you unique results for Book
like:
myBooks =Book.objects.filter(stores__greatStore=True).distinct()
Source:stackexchange.com