auth.models.PermissionsMixin.get_all_permissions()

get_all_permissions(obj=None)

Returns a set of permission strings that the user has, both through group and user permissions.

If obj is passed in, only returns the permissions for this specific object.

doc_Django
2016-10-09 18:34:21
Comments
Leave a Comment

Please login to continue.