pyrax
pyrax copied to clipboard
It would be super nice to have a User.roles method.
Currently, there does not appear to be a helper method for retrieving the roles for a User object. It would be great to have a wrapper that would effectively accomplish the following for a given User instance as user:
user.manager.list_roles_for_user(user)
Shortening this to simply user.roles would be sweet!
list_roles_for_user() should also return Roles objects, not a list of dicts, as it currently does.