1👍
✅
The same way you’d use it in filter
: with __in
:
Event.objects.filter(task="123").exclude(user__in=["bob","fred"])
Source:stackexchange.com