taskapp/events/task.py
changeset 205 0c317f68df49
parent 199 946d0fe60606
child 218 59107ce0a618
--- a/taskapp/events/task.py	Thu Mar 04 18:30:55 2010 +0530
+++ b/taskapp/events/task.py	Thu Mar 04 19:08:47 2010 +0530
@@ -1,5 +1,5 @@
 from datetime import datetime
-from pytask.taskapp.models import Profile, Task, Comment, Claim, Map
+from pytask.taskapp.models import Profile, Task, Comment, Map
 from pytask.taskapp.utilities.task import getTask
 from pytask.taskapp.utilities.request import create_request
 from pytask.taskapp.utilities.helper import get_key
@@ -141,12 +141,6 @@
     
     task.claimed_users.add(user)
     task.save()
-    claim = Claim()
-    claim.message = message
-    claim.task = task
-    claim.user = user
-    claim.creation_datetime = datetime.now()
-    claim.save()
 
     pending_reqs = user.request_sent_to.filter(is_replied=False, is_valid=True, role="MT", task=task).all()
     for req in pending_reqs: