intent: In Django, how do I check if a user is in a certain group?
rewritten_intent: check if a user `user` is in a group from list of groups `['group1', 'group2']`
snippet: return user.groups.filter(name__in=['group1', 'group2']).exists()