taskapp/views/task.py
changeset 112 eadff01e395e
parent 111 c272d4c601cd
child 114 38793914921b
equal deleted inserted replaced
111:c272d4c601cd 112:eadff01e395e
    59     user = request.user
    59     user = request.user
    60     task = getTask(tid)
    60     task = getTask(tid)
    61 
    61 
    62     if task.status == "DL":
    62     if task.status == "DL":
    63         return show_msg(user, 'This task no longer exists', '/task/browse/','browse the tasks')
    63         return show_msg(user, 'This task no longer exists', '/task/browse/','browse the tasks')
    64     comments = Comment.objects.filter(task=task)
    64     comments = task.comment_set.filter(is_deleted=False)
    65     mentors = task.mentors.all()
    65     mentors = task.mentors.all()
    66 
    66 
    67     deps, subs = task.deps, task.subs
    67     deps, subs = task.deps, task.subs
    68     
    68     
    69     errors = []
    69     errors = []