Last active
October 26, 2018 16:25
-
-
Save edgabaldi/e5db2b67d15c364b201cdf073c19e4f5 to your computer and use it in GitHub Desktop.
print permissions from group in django
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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