{"action":"created","comment":{"url":"https://api.github.com/repos/crowdresearch/crowdsource-platform/pulls/comments/32379745","id":32379745,"diff_hunk":"@@ -1,14 +1,42 @@\n-__author__ = 'elsabakiu, dmorina, asmita, megha'\n+__author__ = 'elsabakiu, dmorina, asmita, megha,kajal'\n \n from crowdsourcing.serializers.task import *\n-from rest_framework import viewsets\n+from rest_framework import status, viewsets\n+from rest_framework.response import Response\n+from rest_framework.decorators import detail_route, list_route\n+from crowdsourcing.models import Worker,TaskWorker,Module\n+from rest_framework import mixins\n+from django.shortcuts import get_object_or_404\n \n class TaskViewSet(viewsets.ModelViewSet):\n-    from crowdsourcing.models import Task\n-    queryset = Task.objects.all()\n-    serializer_class = TaskSerializer\n+\tfrom crowdsourcing.models import Task\n+\tqueryset = Task.objects.all()\n+\tserializer_class = TaskSerializer\n \n+\t@detail_route(methods=['post'])","path":"crowdsourcing/viewsets/task.py","position":21,"original_position":21,"commit_id":"bdb2daa58f8cb10bc576ceb4051a976fd81e66b9","original_commit_id":"b41349ee25852d76bf3f8e81487394cbb7be0bd4","user":{"login":"shriyanka","id":9421351,"avatar_url":"https://avatars.githubusercontent.com/u/9421351?v=3","gravatar_id":"","url":"https://api.github.com/users/shriyanka","html_url":"https://github.com/shriyanka","followers_url":"https://api.github.com/users/shriyanka/followers","following_url":"https://api.github.com/users/shriyanka/following{/other_user}","gists_url":"https://api.github.com/users/shriyanka/gists{/gist_id}","starred_url":"https://api.github.com/users/shriyanka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shriyanka/subscriptions","organizations_url":"https://api.github.com/users/shriyanka/orgs","repos_url":"https://api.github.com/users/shriyanka/repos","events_url":"https://api.github.com/users/shriyanka/events{/privacy}","received_events_url":"https://api.github.com/users/shriyanka/received_events","type":"User","site_admin":false},"body":"some problem in this PR due to git.. will create a new PR","created_at":"2015-06-14T13:42:58Z","updated_at":"2015-06-14T13:42:58Z","html_url":"https://github.com/crowdresearch/crowdsource-platform/pull/256#discussion_r32379745","pull_request_url":"https://api.github.com/repos/crowdresearch/crowdsource-platform/pulls/256","_links":{"self":{"href":"https://api.github.com/repos/crowdresearch/crowdsource-platform/pulls/comments/32379745"},"html":{"href":"https://github.com/crowdresearch/crowdsource-platform/pull/256#discussion_r32379745"},"pull_request":{"href":"https://api.github.com/repos/crowdresearch/crowdsource-platform/pulls/256"}}},"pull_request":{"url":"https://api.github.com/repos/crowdresearch/crowdsource-platform/pulls/256","id":37520166,"html_url":"https://github.com/crowdresearch/crowdsource-platform/pull/256","diff_url":"https://github.com/crowdresearch/crowdsource-platform/pull/256.diff","patch_url":"https://github.com/crowdresearch/crowdsource-platform/pull/256.patch","issue_url":"https://api.github.com/repos/crowdresearch/crowdsource-platform/issues/256","number":256,"state":"open","locked":false,"title":"Issue ","user":{"login":"shriyanka","id":9421351,"avatar_url":"https://avatars.githubusercontent.com/u/9421351?v=3","gravatar_id":"","url":"https://api.github.com/users/shriyanka","html_url":"https://github.com/shriyanka","followers_url":"https://api.github.com/users/shriyanka/followers","following_url":"https://api.github.com/users/shriyanka/following{/other_user}","gists_url":"https://api.github.com/users/shriyanka/gists{/gist_id}","starred_url":"https://api.github.com/users/shriyanka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shriyanka/subscriptions","organizations_url":"https://api.github.com/users/shriyanka/orgs","repos_url":"https://api.github.com/users/shriyanka/repos","events_url":"https://api.github.com/users/shriyanka/events{/privacy}","received_events_url":"https://api.github.com/users/shriyanka/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-06-11T23:42:58Z","updated_at":"2015-06-14T13:42:58Z","closed_at":null,"merged_at":null,"merge_commit_sha":"6c3a22842f1ce770618019491ec9342aee1e7a99","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/crowdresearch/crowdsource-platform/pulls/256/commits","review_comments_url":"https://api.github.com/repos/crowdresearch/crowdsource-platform/pulls/256/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/256/comments","statuses_url":"https://api.github.com/repos/crowdresearch/crowdsource-platform/statuses/bdb2daa58f8cb10bc576ceb4051a976fd81e66b9","head":{"label":"shriyanka:issue","ref":"issue","sha":"bdb2daa58f8cb10bc576ceb4051a976fd81e66b9","user":{"login":"shriyanka","id":9421351,"avatar_url":"https://avatars.githubusercontent.com/u/9421351?v=3","gravatar_id":"","url":"https://api.github.com/users/shriyanka","html_url":"https://github.com/shriyanka","followers_url":"https://api.github.com/users/shriyanka/followers","following_url":"https://api.github.com/users/shriyanka/following{/other_user}","gists_url":"https://api.github.com/users/shriyanka/gists{/gist_id}","starred_url":"https://api.github.com/users/shriyanka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shriyanka/subscriptions","organizations_url":"https://api.github.com/users/shriyanka/orgs","repos_url":"https://api.github.com/users/shriyanka/repos","events_url":"https://api.github.com/users/shriyanka/events{/privacy}","received_events_url":"https://api.github.com/users/shriyanka/received_events","type":"User","site_admin":false},"repo":{"id":37015105,"name":"crowdsource-platform","full_name":"shriyanka/crowdsource-platform","owner":{"login":"shriyanka","id":9421351,"avatar_url":"https://avatars.githubusercontent.com/u/9421351?v=3","gravatar_id":"","url":"https://api.github.com/users/shriyanka","html_url":"https://github.com/shriyanka","followers_url":"https://api.github.com/users/shriyanka/followers","following_url":"https://api.github.com/users/shriyanka/following{/other_user}","gists_url":"https://api.github.com/users/shriyanka/gists{/gist_id}","starred_url":"https://api.github.com/users/shriyanka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shriyanka/subscriptions","organizations_url":"https://api.github.com/users/shriyanka/orgs","repos_url":"https://api.github.com/users/shriyanka/repos","events_url":"https://api.github.com/users/shriyanka/events{/privacy}","received_events_url":"https://api.github.com/users/shriyanka/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/shriyanka/crowdsource-platform","description":"The main repository for Crowdsource Platform","fork":true,"url":"https://api.github.com/repos/shriyanka/crowdsource-platform","forks_url":"https://api.github.com/repos/shriyanka/crowdsource-platform/forks","keys_url":"https://api.github.com/repos/shriyanka/crowdsource-platform/keys{/key_id}","collaborators_url":"https://api.github.com/repos/shriyanka/crowdsource-platform/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/shriyanka/crowdsource-platform/teams","hooks_url":"https://api.github.com/repos/shriyanka/crowdsource-platform/hooks","issue_events_url":"https://api.github.com/repos/shriyanka/crowdsource-platform/issues/events{/number}","events_url":"https://api.github.com/repos/shriyanka/crowdsource-platform/events","assignees_url":"https://api.github.com/repos/shriyanka/crowdsource-platform/assignees{/user}","branches_url":"https://api.github.com/repos/shriyanka/crowdsource-platform/branches{/branch}","tags_url":"https://api.github.com/repos/shriyanka/crowdsource-platform/tags","blobs_url":"https://api.github.com/repos/shriyanka/crowdsource-platform/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/shriyanka/crowdsource-platform/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/shriyanka/crowdsource-platform/git/refs{/sha}","trees_url":"https://api.github.com/repos/shriyanka/crowdsource-platform/git/trees{/sha}","statuses_url":"https://api.github.com/repos/shriyanka/crowdsource-platform/statuses/{sha}","languages_url":"https://api.github.com/repos/shriyanka/crowdsource-platform/languages","stargazers_url":"https://api.github.com/repos/shriyanka/crowdsource-platform/stargazers","contributors_url":"https://api.github.com/repos/shriyanka/crowdsource-platform/contributors","subscribers_url":"https://api.github.com/repos/shriyanka/crowdsource-platform/subscribers","subscription_url":"https://api.github.com/repos/shriyanka/crowdsource-platform/subscription","commits_url":"https://api.github.com/repos/shriyanka/crowdsource-platform/commits{/sha}","git_commits_url":"https://api.github.com/repos/shriyanka/crowdsource-platform/git/commits{/sha}","comments_url":"https://api.github.com/repos/shriyanka/crowdsource-platform/comments{/number}","issue_comment_url":"https://api.github.com/repos/shriyanka/crowdsource-platform/issues/comments{/number}","contents_url":"https://api.github.com/repos/shriyanka/crowdsource-platform/contents/{+path}","compare_url":"https://api.github.com/repos/shriyanka/crowdsource-platform/compare/{base}...{head}","merges_url":"https://api.github.com/repos/shriyanka/crowdsource-platform/merges","archive_url":"https://api.github.com/repos/shriyanka/crowdsource-platform/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/shriyanka/crowdsource-platform/downloads","issues_url":"https://api.github.com/repos/shriyanka/crowdsource-platform/issues{/number}","pulls_url":"https://api.github.com/repos/shriyanka/crowdsource-platform/pulls{/number}","milestones_url":"https://api.github.com/repos/shriyanka/crowdsource-platform/milestones{/number}","notifications_url":"https://api.github.com/repos/shriyanka/crowdsource-platform/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/shriyanka/crowdsource-platform/labels{/name}","releases_url":"https://api.github.com/repos/shriyanka/crowdsource-platform/releases{/id}","created_at":"2015-06-07T12:04:16Z","updated_at":"2015-06-07T12:04:17Z","pushed_at":"2015-06-14T13:39:44Z","git_url":"git://github.com/shriyanka/crowdsource-platform.git","ssh_url":"git@github.com:shriyanka/crowdsource-platform.git","clone_url":"https://github.com/shriyanka/crowdsource-platform.git","svn_url":"https://github.com/shriyanka/crowdsource-platform","homepage":null,"size":10217,"stargazers_count":0,"watchers_count":0,"language":"CSS","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"develop2"}},"base":{"label":"crowdresearch:develop2","ref":"develop2","sha":"f80a305077d3432cb8f03f5eae1a4a49df35d4a2","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-06-08T12:49:29Z","pushed_at":"2015-06-14T13:39:45Z","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":26133,"stargazers_count":32,"watchers_count":32,"language":"CSS","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":104,"mirror_url":null,"open_issues_count":66,"forks":104,"open_issues":66,"watchers":32,"default_branch":"develop2"}},"_links":{"self":{"href":"https://api.github.com/repos/crowdresearch/crowdsource-platform/pulls/256"},"html":{"href":"https://github.com/crowdresearch/crowdsource-platform/pull/256"},"issue":{"href":"https://api.github.com/repos/crowdresearch/crowdsource-platform/issues/256"},"comments":{"href":"https://api.github.com/repos/crowdresearch/crowdsource-platform/issues/256/comments"},"review_comments":{"href":"https://api.github.com/repos/crowdresearch/crowdsource-platform/pulls/256/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/256/commits"},"statuses":{"href":"https://api.github.com/repos/crowdresearch/crowdsource-platform/statuses/bdb2daa58f8cb10bc576ceb4051a976fd81e66b9"}}}}