{"action":"created","comment":{"url":"https://api.github.com/repos/crowdresearch/crowdsource-platform/pulls/comments/37935067","id":37935067,"diff_hunk":"@@ -134,11 +134,13 @@ def retrieve_with_data_and_results(self, request, *args, **kwargs):\n                         fields=('id', 'task_status', 'task_with_data_and_results'))\n         return Response(serializer.data, status.HTTP_200_OK)\n \n-    @detail_route(methods=['delete'])\n-    def drop_saved_task(self,request, *args, **kwargs):\n-        obj = self.queryset.get(task=kwargs['task__id'], worker=request.user.userprofile.worker.id)\n-        obj.task_status = 6\n-        obj.save()\n+    @list_route(methods=['post'])\n+    def drop_saved_tasks(self,request, *args, **kwargs):\n+        task_ids = request.data.get('task_ids', [])\n+        for task_id in task_ids:\n+            obj = self.queryset.get(task=task_id, worker=request.user.userprofile.worker.id)\n+            obj.task_status = 6","path":"crowdsourcing/viewsets/task.py","position":14,"original_position":14,"commit_id":"d0cf9a1636a44eb2a084d36bfc8940bb8210b042","original_commit_id":"d0cf9a1636a44eb2a084d36bfc8940bb8210b042","user":{"login":"dmorina","id":2858281,"avatar_url":"https://avatars.githubusercontent.com/u/2858281?v=3","gravatar_id":"","url":"https://api.github.com/users/dmorina","html_url":"https://github.com/dmorina","followers_url":"https://api.github.com/users/dmorina/followers","following_url":"https://api.github.com/users/dmorina/following{/other_user}","gists_url":"https://api.github.com/users/dmorina/gists{/gist_id}","starred_url":"https://api.github.com/users/dmorina/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dmorina/subscriptions","organizations_url":"https://api.github.com/users/dmorina/orgs","repos_url":"https://api.github.com/users/dmorina/repos","events_url":"https://api.github.com/users/dmorina/events{/privacy}","received_events_url":"https://api.github.com/users/dmorina/received_events","type":"User","site_admin":false},"body":"see bulk_update_status method here","created_at":"2015-08-26T00:14:56Z","updated_at":"2015-08-26T00:14:56Z","html_url":"https://github.com/crowdresearch/crowdsource-platform/pull/417#discussion_r37935067","pull_request_url":"https://api.github.com/repos/crowdresearch/crowdsource-platform/pulls/417","_links":{"self":{"href":"https://api.github.com/repos/crowdresearch/crowdsource-platform/pulls/comments/37935067"},"html":{"href":"https://github.com/crowdresearch/crowdsource-platform/pull/417#discussion_r37935067"},"pull_request":{"href":"https://api.github.com/repos/crowdresearch/crowdsource-platform/pulls/417"}}},"pull_request":{"url":"https://api.github.com/repos/crowdresearch/crowdsource-platform/pulls/417","id":43346430,"html_url":"https://github.com/crowdresearch/crowdsource-platform/pull/417","diff_url":"https://github.com/crowdresearch/crowdsource-platform/pull/417.diff","patch_url":"https://github.com/crowdresearch/crowdsource-platform/pull/417.patch","issue_url":"https://api.github.com/repos/crowdresearch/crowdsource-platform/issues/417","number":417,"state":"open","locked":false,"title":"delete tasks from dashboard only","user":{"login":"aginzberg","id":4563883,"avatar_url":"https://avatars.githubusercontent.com/u/4563883?v=3","gravatar_id":"","url":"https://api.github.com/users/aginzberg","html_url":"https://github.com/aginzberg","followers_url":"https://api.github.com/users/aginzberg/followers","following_url":"https://api.github.com/users/aginzberg/following{/other_user}","gists_url":"https://api.github.com/users/aginzberg/gists{/gist_id}","starred_url":"https://api.github.com/users/aginzberg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aginzberg/subscriptions","organizations_url":"https://api.github.com/users/aginzberg/orgs","repos_url":"https://api.github.com/users/aginzberg/repos","events_url":"https://api.github.com/users/aginzberg/events{/privacy}","received_events_url":"https://api.github.com/users/aginzberg/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-08-25T22:52:57Z","updated_at":"2015-08-26T00:14:56Z","closed_at":null,"merged_at":null,"merge_commit_sha":"c2f99817b40c3918dca6911e8324a92abecb67fe","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/crowdresearch/crowdsource-platform/pulls/417/commits","review_comments_url":"https://api.github.com/repos/crowdresearch/crowdsource-platform/pulls/417/comments","review_comment_url":"https://api.github.com/repos/crowdresearch/crowdsource-platform/pulls/comments{/number}","comments_url":"https://api.github.com/repos/crowdresearch/crowdsource-platform/issues/417/comments","statuses_url":"https://api.github.com/repos/crowdresearch/crowdsource-platform/statuses/d0cf9a1636a44eb2a084d36bfc8940bb8210b042","head":{"label":"aginzberg:in-progress-icons-live","ref":"in-progress-icons-live","sha":"d0cf9a1636a44eb2a084d36bfc8940bb8210b042","user":{"login":"aginzberg","id":4563883,"avatar_url":"https://avatars.githubusercontent.com/u/4563883?v=3","gravatar_id":"","url":"https://api.github.com/users/aginzberg","html_url":"https://github.com/aginzberg","followers_url":"https://api.github.com/users/aginzberg/followers","following_url":"https://api.github.com/users/aginzberg/following{/other_user}","gists_url":"https://api.github.com/users/aginzberg/gists{/gist_id}","starred_url":"https://api.github.com/users/aginzberg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aginzberg/subscriptions","organizations_url":"https://api.github.com/users/aginzberg/orgs","repos_url":"https://api.github.com/users/aginzberg/repos","events_url":"https://api.github.com/users/aginzberg/events{/privacy}","received_events_url":"https://api.github.com/users/aginzberg/received_events","type":"User","site_admin":false},"repo":{"id":38257742,"name":"crowdsource-platform","full_name":"aginzberg/crowdsource-platform","owner":{"login":"aginzberg","id":4563883,"avatar_url":"https://avatars.githubusercontent.com/u/4563883?v=3","gravatar_id":"","url":"https://api.github.com/users/aginzberg","html_url":"https://github.com/aginzberg","followers_url":"https://api.github.com/users/aginzberg/followers","following_url":"https://api.github.com/users/aginzberg/following{/other_user}","gists_url":"https://api.github.com/users/aginzberg/gists{/gist_id}","starred_url":"https://api.github.com/users/aginzberg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aginzberg/subscriptions","organizations_url":"https://api.github.com/users/aginzberg/orgs","repos_url":"https://api.github.com/users/aginzberg/repos","events_url":"https://api.github.com/users/aginzberg/events{/privacy}","received_events_url":"https://api.github.com/users/aginzberg/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/aginzberg/crowdsource-platform","description":"The main repository for Crowdsource Platform","fork":true,"url":"https://api.github.com/repos/aginzberg/crowdsource-platform","forks_url":"https://api.github.com/repos/aginzberg/crowdsource-platform/forks","keys_url":"https://api.github.com/repos/aginzberg/crowdsource-platform/keys{/key_id}","collaborators_url":"https://api.github.com/repos/aginzberg/crowdsource-platform/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/aginzberg/crowdsource-platform/teams","hooks_url":"https://api.github.com/repos/aginzberg/crowdsource-platform/hooks","issue_events_url":"https://api.github.com/repos/aginzberg/crowdsource-platform/issues/events{/number}","events_url":"https://api.github.com/repos/aginzberg/crowdsource-platform/events","assignees_url":"https://api.github.com/repos/aginzberg/crowdsource-platform/assignees{/user}","branches_url":"https://api.github.com/repos/aginzberg/crowdsource-platform/branches{/branch}","tags_url":"https://api.github.com/repos/aginzberg/crowdsource-platform/tags","blobs_url":"https://api.github.com/repos/aginzberg/crowdsource-platform/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/aginzberg/crowdsource-platform/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/aginzberg/crowdsource-platform/git/refs{/sha}","trees_url":"https://api.github.com/repos/aginzberg/crowdsource-platform/git/trees{/sha}","statuses_url":"https://api.github.com/repos/aginzberg/crowdsource-platform/statuses/{sha}","languages_url":"https://api.github.com/repos/aginzberg/crowdsource-platform/languages","stargazers_url":"https://api.github.com/repos/aginzberg/crowdsource-platform/stargazers","contributors_url":"https://api.github.com/repos/aginzberg/crowdsource-platform/contributors","subscribers_url":"https://api.github.com/repos/aginzberg/crowdsource-platform/subscribers","subscription_url":"https://api.github.com/repos/aginzberg/crowdsource-platform/subscription","commits_url":"https://api.github.com/repos/aginzberg/crowdsource-platform/commits{/sha}","git_commits_url":"https://api.github.com/repos/aginzberg/crowdsource-platform/git/commits{/sha}","comments_url":"https://api.github.com/repos/aginzberg/crowdsource-platform/comments{/number}","issue_comment_url":"https://api.github.com/repos/aginzberg/crowdsource-platform/issues/comments{/number}","contents_url":"https://api.github.com/repos/aginzberg/crowdsource-platform/contents/{+path}","compare_url":"https://api.github.com/repos/aginzberg/crowdsource-platform/compare/{base}...{head}","merges_url":"https://api.github.com/repos/aginzberg/crowdsource-platform/merges","archive_url":"https://api.github.com/repos/aginzberg/crowdsource-platform/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/aginzberg/crowdsource-platform/downloads","issues_url":"https://api.github.com/repos/aginzberg/crowdsource-platform/issues{/number}","pulls_url":"https://api.github.com/repos/aginzberg/crowdsource-platform/pulls{/number}","milestones_url":"https://api.github.com/repos/aginzberg/crowdsource-platform/milestones{/number}","notifications_url":"https://api.github.com/repos/aginzberg/crowdsource-platform/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/aginzberg/crowdsource-platform/labels{/name}","releases_url":"https://api.github.com/repos/aginzberg/crowdsource-platform/releases{/id}","created_at":"2015-06-29T16:22:01Z","updated_at":"2015-06-29T16:22:01Z","pushed_at":"2015-08-26T00:08:50Z","git_url":"git://github.com/aginzberg/crowdsource-platform.git","ssh_url":"git@github.com:aginzberg/crowdsource-platform.git","clone_url":"https://github.com/aginzberg/crowdsource-platform.git","svn_url":"https://github.com/aginzberg/crowdsource-platform","homepage":null,"size":15197,"stargazers_count":0,"watchers_count":0,"language":"CSS","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":1,"forks":1,"open_issues":1,"watchers":0,"default_branch":"develop2"}},"base":{"label":"crowdresearch:develop2","ref":"develop2","sha":"9549d7ebc6243548f8330902fa3171d410a24af7","user":{"login":"crowdresearch","id":11791223,"avatar_url":"https://avatars.githubusercontent.com/u/11791223?v=3","gravatar_id":"","url":"https://api.github.com/users/crowdresearch","html_url":"https://github.com/crowdresearch","followers_url":"https://api.github.com/users/crowdresearch/followers","following_url":"https://api.github.com/users/crowdresearch/following{/other_user}","gists_url":"https://api.github.com/users/crowdresearch/gists{/gist_id}","starred_url":"https://api.github.com/users/crowdresearch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/crowdresearch/subscriptions","organizations_url":"https://api.github.com/users/crowdresearch/orgs","repos_url":"https://api.github.com/users/crowdresearch/repos","events_url":"https://api.github.com/users/crowdresearch/events{/privacy}","received_events_url":"https://api.github.com/users/crowdresearch/received_events","type":"Organization","site_admin":false},"repo":{"id":34006010,"name":"crowdsource-platform","full_name":"crowdresearch/crowdsource-platform","owner":{"login":"crowdresearch","id":11791223,"avatar_url":"https://avatars.githubusercontent.com/u/11791223?v=3","gravatar_id":"","url":"https://api.github.com/users/crowdresearch","html_url":"https://github.com/crowdresearch","followers_url":"https://api.github.com/users/crowdresearch/followers","following_url":"https://api.github.com/users/crowdresearch/following{/other_user}","gists_url":"https://api.github.com/users/crowdresearch/gists{/gist_id}","starred_url":"https://api.github.com/users/crowdresearch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/crowdresearch/subscriptions","organizations_url":"https://api.github.com/users/crowdresearch/orgs","repos_url":"https://api.github.com/users/crowdresearch/repos","events_url":"https://api.github.com/users/crowdresearch/events{/privacy}","received_events_url":"https://api.github.com/users/crowdresearch/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/crowdresearch/crowdsource-platform","description":"The main repository for Crowdsource Platform","fork":false,"url":"https://api.github.com/repos/crowdresearch/crowdsource-platform","forks_url":"https://api.github.com/repos/crowdresearch/crowdsource-platform/forks","keys_url":"https://api.github.com/repos/crowdresearch/crowdsource-platform/keys{/key_id}","collaborators_url":"https://api.github.com/repos/crowdresearch/crowdsource-platform/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/crowdresearch/crowdsource-platform/teams","hooks_url":"https://api.github.com/repos/crowdresearch/crowdsource-platform/hooks","issue_events_url":"https://api.github.com/repos/crowdresearch/crowdsource-platform/issues/events{/number}","events_url":"https://api.github.com/repos/crowdresearch/crowdsource-platform/events","assignees_url":"https://api.github.com/repos/crowdresearch/crowdsource-platform/assignees{/user}","branches_url":"https://api.github.com/repos/crowdresearch/crowdsource-platform/branches{/branch}","tags_url":"https://api.github.com/repos/crowdresearch/crowdsource-platform/tags","blobs_url":"https://api.github.com/repos/crowdresearch/crowdsource-platform/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/crowdresearch/crowdsource-platform/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/crowdresearch/crowdsource-platform/git/refs{/sha}","trees_url":"https://api.github.com/repos/crowdresearch/crowdsource-platform/git/trees{/sha}","statuses_url":"https://api.github.com/repos/crowdresearch/crowdsource-platform/statuses/{sha}","languages_url":"https://api.github.com/repos/crowdresearch/crowdsource-platform/languages","stargazers_url":"https://api.github.com/repos/crowdresearch/crowdsource-platform/stargazers","contributors_url":"https://api.github.com/repos/crowdresearch/crowdsource-platform/contributors","subscribers_url":"https://api.github.com/repos/crowdresearch/crowdsource-platform/subscribers","subscription_url":"https://api.github.com/repos/crowdresearch/crowdsource-platform/subscription","commits_url":"https://api.github.com/repos/crowdresearch/crowdsource-platform/commits{/sha}","git_commits_url":"https://api.github.com/repos/crowdresearch/crowdsource-platform/git/commits{/sha}","comments_url":"https://api.github.com/repos/crowdresearch/crowdsource-platform/comments{/number}","issue_comment_url":"https://api.github.com/repos/crowdresearch/crowdsource-platform/issues/comments{/number}","contents_url":"https://api.github.com/repos/crowdresearch/crowdsource-platform/contents/{+path}","compare_url":"https://api.github.com/repos/crowdresearch/crowdsource-platform/compare/{base}...{head}","merges_url":"https://api.github.com/repos/crowdresearch/crowdsource-platform/merges","archive_url":"https://api.github.com/repos/crowdresearch/crowdsource-platform/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/crowdresearch/crowdsource-platform/downloads","issues_url":"https://api.github.com/repos/crowdresearch/crowdsource-platform/issues{/number}","pulls_url":"https://api.github.com/repos/crowdresearch/crowdsource-platform/pulls{/number}","milestones_url":"https://api.github.com/repos/crowdresearch/crowdsource-platform/milestones{/number}","notifications_url":"https://api.github.com/repos/crowdresearch/crowdsource-platform/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/crowdresearch/crowdsource-platform/labels{/name}","releases_url":"https://api.github.com/repos/crowdresearch/crowdsource-platform/releases{/id}","created_at":"2015-04-15T16:36:52Z","updated_at":"2015-08-13T13:10:43Z","pushed_at":"2015-08-26T00:09:56Z","git_url":"git://github.com/crowdresearch/crowdsource-platform.git","ssh_url":"git@github.com:crowdresearch/crowdsource-platform.git","clone_url":"https://github.com/crowdresearch/crowdsource-platform.git","svn_url":"https://github.com/crowdresearch/crowdsource-platform","homepage":null,"size":35083,"stargazers_count":42,"watchers_count":42,"language":"CSS","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":115,"mirror_url":null,"open_issues_count":62,"forks":115,"open_issues":62,"watchers":42,"default_branch":"develop2"}},"_links":{"self":{"href":"https://api.github.com/repos/crowdresearch/crowdsource-platform/pulls/417"},"html":{"href":"https://github.com/crowdresearch/crowdsource-platform/pull/417"},"issue":{"href":"https://api.github.com/repos/crowdresearch/crowdsource-platform/issues/417"},"comments":{"href":"https://api.github.com/repos/crowdresearch/crowdsource-platform/issues/417/comments"},"review_comments":{"href":"https://api.github.com/repos/crowdresearch/crowdsource-platform/pulls/417/comments"},"review_comment":{"href":"https://api.github.com/repos/crowdresearch/crowdsource-platform/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/crowdresearch/crowdsource-platform/pulls/417/commits"},"statuses":{"href":"https://api.github.com/repos/crowdresearch/crowdsource-platform/statuses/d0cf9a1636a44eb2a084d36bfc8940bb8210b042"}}}}