taskapp/views/task.py
changeset 110 3685c2333448
parent 109 a381c91a1618
child 111 c272d4c601cd
equal deleted inserted replaced
109:a381c91a1618 110:3685c2333448
    29     
    29     
    30     task_url = "/task/view/tid=%s"%tid
    30     task_url = "/task/view/tid=%s"%tid
    31     
    31     
    32     user = request.user
    32     user = request.user
    33     task = getTask(tid)
    33     task = getTask(tid)
       
    34 
       
    35     if task.status == "DL":
       
    36         return show_msg(user, 'This task no longer exists', '/task/browse/','browse the tasks')
    34     comments = Comment.objects.filter(task=task)
    37     comments = Comment.objects.filter(task=task)
    35     mentors = task.mentors.all()
    38     mentors = task.mentors.all()
    36 
    39 
    37     deps, subs = task.deps, task.subs
    40     deps, subs = task.deps, task.subs
    38     
    41