Skip to content

Instantly share code, notes, and snippets.

@edgabaldi
Last active October 26, 2018 16:25
Show Gist options
  • Save edgabaldi/e5db2b67d15c364b201cdf073c19e4f5 to your computer and use it in GitHub Desktop.
Save edgabaldi/e5db2b67d15c364b201cdf073c19e4f5 to your computer and use it in GitHub Desktop.
print permissions from group in django
def print_permissions_from(group):
return [p.codename for p in group.permissions.all()]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment