diff options
author | nishanth | 2010-02-26 01:51:55 +0530 |
---|---|---|
committer | nishanth | 2010-02-26 01:51:55 +0530 |
commit | 2c09c0568eb24349fed6654451115839e3d92b55 (patch) | |
tree | 61ef3dae97edf070fc240d214462ff040efa9fc7 | |
parent | 63094b986d871e6302a5603d43b91a2d7dfdd51d (diff) | |
download | pytask-2c09c0568eb24349fed6654451115839e3d92b55.tar.gz pytask-2c09c0568eb24349fed6654451115839e3d92b55.tar.bz2 pytask-2c09c0568eb24349fed6654451115839e3d92b55.zip |
now deleted tasks cannot be viewed by anyone
-rw-r--r-- | taskapp/views/task.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/taskapp/views/task.py b/taskapp/views/task.py index 509f89b..93e4722 100644 --- a/taskapp/views/task.py +++ b/taskapp/views/task.py @@ -31,6 +31,9 @@ def view_task(request, tid): 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() |