taskapp/events/task.py
changeset 199 946d0fe60606
parent 195 2717c8533322
child 205 0c317f68df49
--- a/taskapp/events/task.py	Thu Mar 04 15:31:40 2010 +0530
+++ b/taskapp/events/task.py	Thu Mar 04 17:29:00 2010 +0530
@@ -155,6 +155,9 @@
         user_url = '<a href="/user/view/uid=%s">%s</a>'%(user.id, user.username)
         reason = "User has claimed the task and hence cannot be a mentor and this request was made invalid."
         create_notification("MT", req.sent_by, user, task=task, reply=False, remarks=reason, requested_by=req.sent_by)
+
+    for a_mentor in task.mentors.all():
+        create_notification("CL", a_mentor, user, task=task, remarks=message)
     
 def assignTask(task, added_user, assigned_by):
     """ check for the status of task and assign it to the particular user """