# HG changeset patch # User nishanth # Date 1267129315 -19800 # Node ID 3685c2333448f8d56908cb11aa6e617c1e6cd528 # Parent a381c91a1618e213eb1511e0ec324f15efd82366 now deleted tasks cannot be viewed by anyone diff -r a381c91a1618 -r 3685c2333448 taskapp/views/task.py --- a/taskapp/views/task.py Fri Feb 26 01:43:24 2010 +0530 +++ b/taskapp/views/task.py Fri Feb 26 01:51:55 2010 +0530 @@ -31,6 +31,9 @@ user = request.user task = getTask(tid) + + if task.status == "DL": + return show_msg(user, 'This task no longer exists', '/task/browse/','browse the tasks') comments = Comment.objects.filter(task=task) mentors = task.mentors.all()