now deleted tasks cannot be viewed by anyone
authornishanth
Fri, 26 Feb 2010 01:51:55 +0530
changeset 110 3685c2333448
parent 109 a381c91a1618
child 111 c272d4c601cd
now deleted tasks cannot be viewed by anyone
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()