diff options
author | nishanth | 2010-02-26 11:29:25 +0530 |
---|---|---|
committer | nishanth | 2010-02-26 11:29:25 +0530 |
commit | 971556bc6ed19d417bfd1959e31fba0c20b907b2 (patch) | |
tree | 1041181b23694ca2c413d03cc7f6e4293ef352b5 /taskapp/views | |
parent | 8dff30125e4a169b28cdc8242041e4e92b5b0718 (diff) | |
download | pytask-971556bc6ed19d417bfd1959e31fba0c20b907b2.tar.gz pytask-971556bc6ed19d417bfd1959e31fba0c20b907b2.tar.bz2 pytask-971556bc6ed19d417bfd1959e31fba0c20b907b2.zip |
now task page displays only undeleted comments. and publish task removes previous comments.
Diffstat (limited to 'taskapp/views')
-rw-r--r-- | taskapp/views/task.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/taskapp/views/task.py b/taskapp/views/task.py index 443d84e..443596a 100644 --- a/taskapp/views/task.py +++ b/taskapp/views/task.py @@ -61,7 +61,7 @@ def view_task(request, 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) + comments = task.comment_set.filter(is_deleted=False) mentors = task.mentors.all() deps, subs = task.deps, task.subs |