added the step of adding user to claimed users
authorNishanth Amuluru <nishanth@fossee.in>
Sun, 09 Jan 2011 11:15:21 +0530
changeset 117 c693def6510f
parent 116 124ccd27ed4f
child 118 f88135529c74
added the step of adding user to claimed users
pytask/taskapp/views.py
--- a/pytask/taskapp/views.py	Sun Jan 09 11:14:07 2011 +0530
+++ b/pytask/taskapp/views.py	Sun Jan 09 11:15:21 2011 +0530
@@ -186,6 +186,10 @@
                          "claimed_by": user,})
             new_claim = TaskClaim(**data)
             new_claim.save()
+
+            task.claimed_users.add(user)
+            task.save()
+
             return redirect(claim_url)
 
         else: