1👍
✅
That syntax is not valid.
Why not just use __in
as you do in your SQL?
Urls.objects.filter(inReview=0).filter(groupId__in=user.groups.values_list('id'))
Source:stackexchange.com