{"action":"created","comment":{"url":"https://api.github.com/repos/uktrade/directory-api/pulls/comments/83478339","pull_request_review_id":4322421,"id":83478339,"diff_hunk":"@@ -0,0 +1,13 @@\n+from rest_framework.generics import RetrieveUpdateAPIView\n+\n+from company.serializers import CompanySerializer\n+from company.models import Company\n+\n+\n+class CompanyRetrieveUpdateAPIView(RetrieveUpdateAPIView):\n+\n+    model = Company\n+    serializer_class = CompanySerializer\n+\n+    def get_queryset(self):","path":"company/views.py","position":12,"original_position":12,"commit_id":"097d2695603c055f51bcf8c65d68ec7e6eb57f3d","original_commit_id":"097d2695603c055f51bcf8c65d68ec7e6eb57f3d","user":{"login":"konradko","id":2781766,"avatar_url":"https://avatars.githubusercontent.com/u/2781766?v=3","gravatar_id":"","url":"https://api.github.com/users/konradko","html_url":"https://github.com/konradko","followers_url":"https://api.github.com/users/konradko/followers","following_url":"https://api.github.com/users/konradko/following{/other_user}","gists_url":"https://api.github.com/users/konradko/gists{/gist_id}","starred_url":"https://api.github.com/users/konradko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/konradko/subscriptions","organizations_url":"https://api.github.com/users/konradko/orgs","repos_url":"https://api.github.com/users/konradko/repos","events_url":"https://api.github.com/users/konradko/events{/privacy}","received_events_url":"https://api.github.com/users/konradko/received_events","type":"User","site_admin":false},"body":"that is surprising","created_at":"2016-10-14T18:36:58Z","updated_at":"2016-10-14T18:36:58Z","html_url":"https://github.com/uktrade/directory-api/pull/6#discussion_r83478339","pull_request_url":"https://api.github.com/repos/uktrade/directory-api/pulls/6","_links":{"self":{"href":"https://api.github.com/repos/uktrade/directory-api/pulls/comments/83478339"},"html":{"href":"https://github.com/uktrade/directory-api/pull/6#discussion_r83478339"},"pull_request":{"href":"https://api.github.com/repos/uktrade/directory-api/pulls/6"}}},"pull_request":{"url":"https://api.github.com/repos/uktrade/directory-api/pulls/6","id":89422396,"html_url":"https://github.com/uktrade/directory-api/pull/6","diff_url":"https://github.com/uktrade/directory-api/pull/6.diff","patch_url":"https://github.com/uktrade/directory-api/pull/6.patch","issue_url":"https://api.github.com/repos/uktrade/directory-api/issues/6","number":6,"state":"open","locked":false,"title":"Company profile API views","user":{"login":"monikasulik","id":3541250,"avatar_url":"https://avatars.githubusercontent.com/u/3541250?v=3","gravatar_id":"","url":"https://api.github.com/users/monikasulik","html_url":"https://github.com/monikasulik","followers_url":"https://api.github.com/users/monikasulik/followers","following_url":"https://api.github.com/users/monikasulik/following{/other_user}","gists_url":"https://api.github.com/users/monikasulik/gists{/gist_id}","starred_url":"https://api.github.com/users/monikasulik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/monikasulik/subscriptions","organizations_url":"https://api.github.com/users/monikasulik/orgs","repos_url":"https://api.github.com/users/monikasulik/repos","events_url":"https://api.github.com/users/monikasulik/events{/privacy}","received_events_url":"https://api.github.com/users/monikasulik/received_events","type":"User","site_admin":false},"body":"https://uktrade.atlassian.net/browse/ED-146","created_at":"2016-10-14T17:24:07Z","updated_at":"2016-10-14T18:36:58Z","closed_at":null,"merged_at":null,"merge_commit_sha":"2030a1ddd354d0b7e60ea7c50d175d953e2059d2","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/uktrade/directory-api/pulls/6/commits","review_comments_url":"https://api.github.com/repos/uktrade/directory-api/pulls/6/comments","review_comment_url":"https://api.github.com/repos/uktrade/directory-api/pulls/comments{/number}","comments_url":"https://api.github.com/repos/uktrade/directory-api/issues/6/comments","statuses_url":"https://api.github.com/repos/uktrade/directory-api/statuses/097d2695603c055f51bcf8c65d68ec7e6eb57f3d","head":{"label":"uktrade:ED-146_company_profile_views","ref":"ED-146_company_profile_views","sha":"097d2695603c055f51bcf8c65d68ec7e6eb57f3d","user":{"login":"uktrade","id":15107524,"avatar_url":"https://avatars.githubusercontent.com/u/15107524?v=3","gravatar_id":"","url":"https://api.github.com/users/uktrade","html_url":"https://github.com/uktrade","followers_url":"https://api.github.com/users/uktrade/followers","following_url":"https://api.github.com/users/uktrade/following{/other_user}","gists_url":"https://api.github.com/users/uktrade/gists{/gist_id}","starred_url":"https://api.github.com/users/uktrade/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/uktrade/subscriptions","organizations_url":"https://api.github.com/users/uktrade/orgs","repos_url":"https://api.github.com/users/uktrade/repos","events_url":"https://api.github.com/users/uktrade/events{/privacy}","received_events_url":"https://api.github.com/users/uktrade/received_events","type":"Organization","site_admin":false},"repo":{"id":67528494,"name":"directory-api","full_name":"uktrade/directory-api","owner":{"login":"uktrade","id":15107524,"avatar_url":"https://avatars.githubusercontent.com/u/15107524?v=3","gravatar_id":"","url":"https://api.github.com/users/uktrade","html_url":"https://github.com/uktrade","followers_url":"https://api.github.com/users/uktrade/followers","following_url":"https://api.github.com/users/uktrade/following{/other_user}","gists_url":"https://api.github.com/users/uktrade/gists{/gist_id}","starred_url":"https://api.github.com/users/uktrade/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/uktrade/subscriptions","organizations_url":"https://api.github.com/users/uktrade/orgs","repos_url":"https://api.github.com/users/uktrade/repos","events_url":"https://api.github.com/users/uktrade/events{/privacy}","received_events_url":"https://api.github.com/users/uktrade/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/uktrade/directory-api","description":"Directory of Exporters API","fork":false,"url":"https://api.github.com/repos/uktrade/directory-api","forks_url":"https://api.github.com/repos/uktrade/directory-api/forks","keys_url":"https://api.github.com/repos/uktrade/directory-api/keys{/key_id}","collaborators_url":"https://api.github.com/repos/uktrade/directory-api/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/uktrade/directory-api/teams","hooks_url":"https://api.github.com/repos/uktrade/directory-api/hooks","issue_events_url":"https://api.github.com/repos/uktrade/directory-api/issues/events{/number}","events_url":"https://api.github.com/repos/uktrade/directory-api/events","assignees_url":"https://api.github.com/repos/uktrade/directory-api/assignees{/user}","branches_url":"https://api.github.com/repos/uktrade/directory-api/branches{/branch}","tags_url":"https://api.github.com/repos/uktrade/directory-api/tags","blobs_url":"https://api.github.com/repos/uktrade/directory-api/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/uktrade/directory-api/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/uktrade/directory-api/git/refs{/sha}","trees_url":"https://api.github.com/repos/uktrade/directory-api/git/trees{/sha}","statuses_url":"https://api.github.com/repos/uktrade/directory-api/statuses/{sha}","languages_url":"https://api.github.com/repos/uktrade/directory-api/languages","stargazers_url":"https://api.github.com/repos/uktrade/directory-api/stargazers","contributors_url":"https://api.github.com/repos/uktrade/directory-api/contributors","subscribers_url":"https://api.github.com/repos/uktrade/directory-api/subscribers","subscription_url":"https://api.github.com/repos/uktrade/directory-api/subscription","commits_url":"https://api.github.com/repos/uktrade/directory-api/commits{/sha}","git_commits_url":"https://api.github.com/repos/uktrade/directory-api/git/commits{/sha}","comments_url":"https://api.github.com/repos/uktrade/directory-api/comments{/number}","issue_comment_url":"https://api.github.com/repos/uktrade/directory-api/issues/comments{/number}","contents_url":"https://api.github.com/repos/uktrade/directory-api/contents/{+path}","compare_url":"https://api.github.com/repos/uktrade/directory-api/compare/{base}...{head}","merges_url":"https://api.github.com/repos/uktrade/directory-api/merges","archive_url":"https://api.github.com/repos/uktrade/directory-api/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/uktrade/directory-api/downloads","issues_url":"https://api.github.com/repos/uktrade/directory-api/issues{/number}","pulls_url":"https://api.github.com/repos/uktrade/directory-api/pulls{/number}","milestones_url":"https://api.github.com/repos/uktrade/directory-api/milestones{/number}","notifications_url":"https://api.github.com/repos/uktrade/directory-api/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/uktrade/directory-api/labels{/name}","releases_url":"https://api.github.com/repos/uktrade/directory-api/releases{/id}","deployments_url":"https://api.github.com/repos/uktrade/directory-api/deployments","created_at":"2016-09-06T16:54:18Z","updated_at":"2016-10-04T11:16:44Z","pushed_at":"2016-10-14T18:18:46Z","git_url":"git://github.com/uktrade/directory-api.git","ssh_url":"git@github.com:uktrade/directory-api.git","clone_url":"https://github.com/uktrade/directory-api.git","svn_url":"https://github.com/uktrade/directory-api","homepage":null,"size":99,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"base":{"label":"uktrade:master","ref":"master","sha":"ea92b1c2307676b6405f77042e5b15d3b166eb8b","user":{"login":"uktrade","id":15107524,"avatar_url":"https://avatars.githubusercontent.com/u/15107524?v=3","gravatar_id":"","url":"https://api.github.com/users/uktrade","html_url":"https://github.com/uktrade","followers_url":"https://api.github.com/users/uktrade/followers","following_url":"https://api.github.com/users/uktrade/following{/other_user}","gists_url":"https://api.github.com/users/uktrade/gists{/gist_id}","starred_url":"https://api.github.com/users/uktrade/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/uktrade/subscriptions","organizations_url":"https://api.github.com/users/uktrade/orgs","repos_url":"https://api.github.com/users/uktrade/repos","events_url":"https://api.github.com/users/uktrade/events{/privacy}","received_events_url":"https://api.github.com/users/uktrade/received_events","type":"Organization","site_admin":false},"repo":{"id":67528494,"name":"directory-api","full_name":"uktrade/directory-api","owner":{"login":"uktrade","id":15107524,"avatar_url":"https://avatars.githubusercontent.com/u/15107524?v=3","gravatar_id":"","url":"https://api.github.com/users/uktrade","html_url":"https://github.com/uktrade","followers_url":"https://api.github.com/users/uktrade/followers","following_url":"https://api.github.com/users/uktrade/following{/other_user}","gists_url":"https://api.github.com/users/uktrade/gists{/gist_id}","starred_url":"https://api.github.com/users/uktrade/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/uktrade/subscriptions","organizations_url":"https://api.github.com/users/uktrade/orgs","repos_url":"https://api.github.com/users/uktrade/repos","events_url":"https://api.github.com/users/uktrade/events{/privacy}","received_events_url":"https://api.github.com/users/uktrade/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/uktrade/directory-api","description":"Directory of Exporters API","fork":false,"url":"https://api.github.com/repos/uktrade/directory-api","forks_url":"https://api.github.com/repos/uktrade/directory-api/forks","keys_url":"https://api.github.com/repos/uktrade/directory-api/keys{/key_id}","collaborators_url":"https://api.github.com/repos/uktrade/directory-api/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/uktrade/directory-api/teams","hooks_url":"https://api.github.com/repos/uktrade/directory-api/hooks","issue_events_url":"https://api.github.com/repos/uktrade/directory-api/issues/events{/number}","events_url":"https://api.github.com/repos/uktrade/directory-api/events","assignees_url":"https://api.github.com/repos/uktrade/directory-api/assignees{/user}","branches_url":"https://api.github.com/repos/uktrade/directory-api/branches{/branch}","tags_url":"https://api.github.com/repos/uktrade/directory-api/tags","blobs_url":"https://api.github.com/repos/uktrade/directory-api/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/uktrade/directory-api/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/uktrade/directory-api/git/refs{/sha}","trees_url":"https://api.github.com/repos/uktrade/directory-api/git/trees{/sha}","statuses_url":"https://api.github.com/repos/uktrade/directory-api/statuses/{sha}","languages_url":"https://api.github.com/repos/uktrade/directory-api/languages","stargazers_url":"https://api.github.com/repos/uktrade/directory-api/stargazers","contributors_url":"https://api.github.com/repos/uktrade/directory-api/contributors","subscribers_url":"https://api.github.com/repos/uktrade/directory-api/subscribers","subscription_url":"https://api.github.com/repos/uktrade/directory-api/subscription","commits_url":"https://api.github.com/repos/uktrade/directory-api/commits{/sha}","git_commits_url":"https://api.github.com/repos/uktrade/directory-api/git/commits{/sha}","comments_url":"https://api.github.com/repos/uktrade/directory-api/comments{/number}","issue_comment_url":"https://api.github.com/repos/uktrade/directory-api/issues/comments{/number}","contents_url":"https://api.github.com/repos/uktrade/directory-api/contents/{+path}","compare_url":"https://api.github.com/repos/uktrade/directory-api/compare/{base}...{head}","merges_url":"https://api.github.com/repos/uktrade/directory-api/merges","archive_url":"https://api.github.com/repos/uktrade/directory-api/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/uktrade/directory-api/downloads","issues_url":"https://api.github.com/repos/uktrade/directory-api/issues{/number}","pulls_url":"https://api.github.com/repos/uktrade/directory-api/pulls{/number}","milestones_url":"https://api.github.com/repos/uktrade/directory-api/milestones{/number}","notifications_url":"https://api.github.com/repos/uktrade/directory-api/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/uktrade/directory-api/labels{/name}","releases_url":"https://api.github.com/repos/uktrade/directory-api/releases{/id}","deployments_url":"https://api.github.com/repos/uktrade/directory-api/deployments","created_at":"2016-09-06T16:54:18Z","updated_at":"2016-10-04T11:16:44Z","pushed_at":"2016-10-14T18:18:46Z","git_url":"git://github.com/uktrade/directory-api.git","ssh_url":"git@github.com:uktrade/directory-api.git","clone_url":"https://github.com/uktrade/directory-api.git","svn_url":"https://github.com/uktrade/directory-api","homepage":null,"size":99,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/uktrade/directory-api/pulls/6"},"html":{"href":"https://github.com/uktrade/directory-api/pull/6"},"issue":{"href":"https://api.github.com/repos/uktrade/directory-api/issues/6"},"comments":{"href":"https://api.github.com/repos/uktrade/directory-api/issues/6/comments"},"review_comments":{"href":"https://api.github.com/repos/uktrade/directory-api/pulls/6/comments"},"review_comment":{"href":"https://api.github.com/repos/uktrade/directory-api/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/uktrade/directory-api/pulls/6/commits"},"statuses":{"href":"https://api.github.com/repos/uktrade/directory-api/statuses/097d2695603c055f51bcf8c65d68ec7e6eb57f3d"}}}}
{"actor":{"display_login":"konradko"}}