1👍
✅
You can use <fieldname>__in
:
users = User.objects.filter(username__in=['foo', 'bar'])
Source:stackexchange.com
1👍
You can use <fieldname>__in
:
users = User.objects.filter(username__in=['foo', 'bar'])