taskapp/views/task.py
changeset 204 fa1da06d25c9
parent 193 505bbe421be4
child 205 0c317f68df49
--- a/taskapp/views/task.py	Thu Mar 04 17:56:31 2010 +0530
+++ b/taskapp/views/task.py	Thu Mar 04 18:30:55 2010 +0530
@@ -342,7 +342,10 @@
     
     user = get_user(request.user) if request.user.is_authenticated() else request.user
     task = getTask(tid)
-    claims = Claim.objects.filter(task=task)
+    #claims = Claim.objects.filter(task=task)
+    #claims = task.notifications_task.filter(role="CL",sent_to=task.created_by) 
+    # this is what the next line should be when i re sync the db
+    claims = Notification.objects.filter(task=task, sent_to=task.created_by, role="CL")
 
     mentors = task.mentors.all()
     claimed_users = task.claimed_users.all()