Reputation: 2324
How to check if value is in manytomany field? I am trying to do something like this:
if value in object1.followers:
#BLA BLA BLA
But 'ManyRelatedManager' is not iterable
. So what is correct way to do it?
Upvotes: 4
Views: 2737