[Answer]-How to compare 1 group_id with multiple user group_ids in django

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'))

Leave a comment