views.py 文件源码

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

项目:nrp 作者: django-rea 项目源码 文件源码
def work_todo_mine(request, todo_id):
    #import pdb; pdb.set_trace()
    if request.method == "POST":
        try:
            todo = Commitment.objects.get(id=todo_id)
        except Commitment.DoesNotExist:
            todo = None
        if todo:
            agent = get_agent(request)
            todo.from_agent = agent
            todo.save()
    next = request.POST.get("next")
    if next:
        return HttpResponseRedirect(next)
    return HttpResponseRedirect('/%s/'
        % ('work/my-dashboard'))
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号