taskapp/views/task.py
changeset 112 eadff01e395e
parent 111 c272d4c601cd
child 114 38793914921b
--- a/taskapp/views/task.py	Fri Feb 26 02:52:32 2010 +0530
+++ b/taskapp/views/task.py	Fri Feb 26 11:29:25 2010 +0530
@@ -61,7 +61,7 @@
 
     if task.status == "DL":
         return show_msg(user, 'This task no longer exists', '/task/browse/','browse the tasks')
-    comments = Comment.objects.filter(task=task)
+    comments = task.comment_set.filter(is_deleted=False)
     mentors = task.mentors.all()
 
     deps, subs = task.deps, task.subs