Return a list of all of the user's roles.

def get_user_roles(user):
    """Return a list of all of the user's roles."""
    if not hasattr(user, '_role_cache'):
        user._role_cache = list(TenantRole.objects.filter(user=user).values_list(
            'group', 'role', 'tenant'))
    return user._role_cache