views.py 文件源码

python
阅读 51 收藏 0 点赞 0 评论 0

项目:mist.api 作者: mistio 项目源码 文件源码
def list_user_organizations(request):
    """
    List user's organizations
    List all the organizations where user is a member
    """
    try:
        user = user_from_request(request)
    except me.DoesNotExist:
        raise UnauthorizedError()
    return [{'id': org.id, 'name': org.name}
            for org in Organization.objects(members=user)]


# SEC
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号