now if a task is closed/completed all its pending requests will be made invalid.
authornishanth
Fri, 26 Feb 2010 15:00:01 +0530
changeset 117 58fa1d626d37
parent 116 cb7f54ed5866
child 118 5bbb29a07b87
now if a task is closed/completed all its pending requests will be made invalid.
taskapp/events/task.py
--- a/taskapp/events/task.py	Fri Feb 26 14:39:47 2010 +0530
+++ b/taskapp/events/task.py	Fri Feb 26 15:00:01 2010 +0530
@@ -233,6 +233,8 @@
     task.status = "CM"
     task.save()
 
+    task.request_task.filter(is_replied=False).update(is_valid=False)
+
     ## generate notification appropriately using marked_by
     ## we also have to mark unread requests as invalid