1👍
You can query a ManyToMany field directly:
project.users.filter(id=user.id).exists()
This will return a boolean showing whether or not that user record is contained in the list of users.
Source:stackexchange.com
1👍
You can query a ManyToMany field directly:
project.users.filter(id=user.id).exists()
This will return a boolean showing whether or not that user record is contained in the list of users.