Skip to content

Instantly share code, notes, and snippets.

@bluethon
Created September 11, 2016 07:33
Show Gist options
  • Save bluethon/e6c8bd00435e741f0e37a320f8ee1cc6 to your computer and use it in GitHub Desktop.
Save bluethon/e6c8bd00435e741f0e37a320f8ee1cc6 to your computer and use it in GitHub Desktop.
check if user have the group
if user.groups.filter(name=group_name).count():
pass
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment