human
In Django, how do I check if a user is in a certain group?
assistant
Here is some code to in django, check if a user is in a group 'Member'

return user.groups.filter(name='Member').exists()

#Warning: this code generation is experimental. Please inspect the code for any bugs before executing.