{"action":"created","comment":{"url":"https://api.github.com/repos/rmotr-group-projects/pyp-w2-gw-starwars-api/pulls/comments/85603784","pull_request_review_id":6313289,"id":85603784,"diff_hunk":"@@ -11,15 +11,21 @@ def __init__(self, json_data):\n         Dynamically assign all attributes in `json_data` as instance\n         attributes of the Model.\n         \"\"\"\n-        pass\n+        for key, value in json_data.items():\n+            setattr(self, key, value)\n+            # setattr(x, 'foobar', 123) is equivalent to x.foobar = 123","path":"starwars_api/models.py","position":7,"original_position":7,"commit_id":"4896bc13b88e5b5c54563ce01d463316ec7059e9","original_commit_id":"4896bc13b88e5b5c54563ce01d463316ec7059e9","user":{"login":"StefGou","id":16372263,"avatar_url":"https://avatars.githubusercontent.com/u/16372263?v=3","gravatar_id":"","url":"https://api.github.com/users/StefGou","html_url":"https://github.com/StefGou","followers_url":"https://api.github.com/users/StefGou/followers","following_url":"https://api.github.com/users/StefGou/following{/other_user}","gists_url":"https://api.github.com/users/StefGou/gists{/gist_id}","starred_url":"https://api.github.com/users/StefGou/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/StefGou/subscriptions","organizations_url":"https://api.github.com/users/StefGou/orgs","repos_url":"https://api.github.com/users/StefGou/repos","events_url":"https://api.github.com/users/StefGou/events{/privacy}","received_events_url":"https://api.github.com/users/StefGou/received_events","type":"User","site_admin":false},"body":"Oh, I didn't know this could be done. I'm taking note. Well done.","created_at":"2016-10-28T20:24:25Z","updated_at":"2016-10-28T20:24:25Z","html_url":"https://github.com/rmotr-group-projects/pyp-w2-gw-starwars-api/pull/26#discussion_r85603784","pull_request_url":"https://api.github.com/repos/rmotr-group-projects/pyp-w2-gw-starwars-api/pulls/26","_links":{"self":{"href":"https://api.github.com/repos/rmotr-group-projects/pyp-w2-gw-starwars-api/pulls/comments/85603784"},"html":{"href":"https://github.com/rmotr-group-projects/pyp-w2-gw-starwars-api/pull/26#discussion_r85603784"},"pull_request":{"href":"https://api.github.com/repos/rmotr-group-projects/pyp-w2-gw-starwars-api/pulls/26"}}},"pull_request":{"url":"https://api.github.com/repos/rmotr-group-projects/pyp-w2-gw-starwars-api/pulls/26","id":91388030,"html_url":"https://github.com/rmotr-group-projects/pyp-w2-gw-starwars-api/pull/26","diff_url":"https://github.com/rmotr-group-projects/pyp-w2-gw-starwars-api/pull/26.diff","patch_url":"https://github.com/rmotr-group-projects/pyp-w2-gw-starwars-api/pull/26.patch","issue_url":"https://api.github.com/repos/rmotr-group-projects/pyp-w2-gw-starwars-api/issues/26","number":26,"state":"open","locked":false,"title":"G1 - Star Wars API - b9-pyp-g1","user":{"login":"contrepoint","id":16640692,"avatar_url":"https://avatars.githubusercontent.com/u/16640692?v=3","gravatar_id":"","url":"https://api.github.com/users/contrepoint","html_url":"https://github.com/contrepoint","followers_url":"https://api.github.com/users/contrepoint/followers","following_url":"https://api.github.com/users/contrepoint/following{/other_user}","gists_url":"https://api.github.com/users/contrepoint/gists{/gist_id}","starred_url":"https://api.github.com/users/contrepoint/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/contrepoint/subscriptions","organizations_url":"https://api.github.com/users/contrepoint/orgs","repos_url":"https://api.github.com/users/contrepoint/repos","events_url":"https://api.github.com/users/contrepoint/events{/privacy}","received_events_url":"https://api.github.com/users/contrepoint/received_events","type":"User","site_admin":false},"body":"Team members\r\n* [Anshul Chauhan](https://github.com/anshulc95)\r\n* [Janice Shiu](https://github.com/contrepoint/)\r\n\r\nNote: We're currently implementing full functionality for films.","created_at":"2016-10-28T14:08:18Z","updated_at":"2016-10-28T20:24:25Z","closed_at":null,"merged_at":null,"merge_commit_sha":"5042ee7a6ee67d787e92bc2d9f679519c4534bdc","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/rmotr-group-projects/pyp-w2-gw-starwars-api/pulls/26/commits","review_comments_url":"https://api.github.com/repos/rmotr-group-projects/pyp-w2-gw-starwars-api/pulls/26/comments","review_comment_url":"https://api.github.com/repos/rmotr-group-projects/pyp-w2-gw-starwars-api/pulls/comments{/number}","comments_url":"https://api.github.com/repos/rmotr-group-projects/pyp-w2-gw-starwars-api/issues/26/comments","statuses_url":"https://api.github.com/repos/rmotr-group-projects/pyp-w2-gw-starwars-api/statuses/4896bc13b88e5b5c54563ce01d463316ec7059e9","head":{"label":"contrepoint:master","ref":"master","sha":"4896bc13b88e5b5c54563ce01d463316ec7059e9","user":{"login":"contrepoint","id":16640692,"avatar_url":"https://avatars.githubusercontent.com/u/16640692?v=3","gravatar_id":"","url":"https://api.github.com/users/contrepoint","html_url":"https://github.com/contrepoint","followers_url":"https://api.github.com/users/contrepoint/followers","following_url":"https://api.github.com/users/contrepoint/following{/other_user}","gists_url":"https://api.github.com/users/contrepoint/gists{/gist_id}","starred_url":"https://api.github.com/users/contrepoint/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/contrepoint/subscriptions","organizations_url":"https://api.github.com/users/contrepoint/orgs","repos_url":"https://api.github.com/users/contrepoint/repos","events_url":"https://api.github.com/users/contrepoint/events{/privacy}","received_events_url":"https://api.github.com/users/contrepoint/received_events","type":"User","site_admin":false},"repo":{"id":71656512,"name":"pyp-w2-gw-starwars-api","full_name":"contrepoint/pyp-w2-gw-starwars-api","owner":{"login":"contrepoint","id":16640692,"avatar_url":"https://avatars.githubusercontent.com/u/16640692?v=3","gravatar_id":"","url":"https://api.github.com/users/contrepoint","html_url":"https://github.com/contrepoint","followers_url":"https://api.github.com/users/contrepoint/followers","following_url":"https://api.github.com/users/contrepoint/following{/other_user}","gists_url":"https://api.github.com/users/contrepoint/gists{/gist_id}","starred_url":"https://api.github.com/users/contrepoint/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/contrepoint/subscriptions","organizations_url":"https://api.github.com/users/contrepoint/orgs","repos_url":"https://api.github.com/users/contrepoint/repos","events_url":"https://api.github.com/users/contrepoint/events{/privacy}","received_events_url":"https://api.github.com/users/contrepoint/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/contrepoint/pyp-w2-gw-starwars-api","description":"Star Wars API","fork":true,"url":"https://api.github.com/repos/contrepoint/pyp-w2-gw-starwars-api","forks_url":"https://api.github.com/repos/contrepoint/pyp-w2-gw-starwars-api/forks","keys_url":"https://api.github.com/repos/contrepoint/pyp-w2-gw-starwars-api/keys{/key_id}","collaborators_url":"https://api.github.com/repos/contrepoint/pyp-w2-gw-starwars-api/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/contrepoint/pyp-w2-gw-starwars-api/teams","hooks_url":"https://api.github.com/repos/contrepoint/pyp-w2-gw-starwars-api/hooks","issue_events_url":"https://api.github.com/repos/contrepoint/pyp-w2-gw-starwars-api/issues/events{/number}","events_url":"https://api.github.com/repos/contrepoint/pyp-w2-gw-starwars-api/events","assignees_url":"https://api.github.com/repos/contrepoint/pyp-w2-gw-starwars-api/assignees{/user}","branches_url":"https://api.github.com/repos/contrepoint/pyp-w2-gw-starwars-api/branches{/branch}","tags_url":"https://api.github.com/repos/contrepoint/pyp-w2-gw-starwars-api/tags","blobs_url":"https://api.github.com/repos/contrepoint/pyp-w2-gw-starwars-api/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/contrepoint/pyp-w2-gw-starwars-api/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/contrepoint/pyp-w2-gw-starwars-api/git/refs{/sha}","trees_url":"https://api.github.com/repos/contrepoint/pyp-w2-gw-starwars-api/git/trees{/sha}","statuses_url":"https://api.github.com/repos/contrepoint/pyp-w2-gw-starwars-api/statuses/{sha}","languages_url":"https://api.github.com/repos/contrepoint/pyp-w2-gw-starwars-api/languages","stargazers_url":"https://api.github.com/repos/contrepoint/pyp-w2-gw-starwars-api/stargazers","contributors_url":"https://api.github.com/repos/contrepoint/pyp-w2-gw-starwars-api/contributors","subscribers_url":"https://api.github.com/repos/contrepoint/pyp-w2-gw-starwars-api/subscribers","subscription_url":"https://api.github.com/repos/contrepoint/pyp-w2-gw-starwars-api/subscription","commits_url":"https://api.github.com/repos/contrepoint/pyp-w2-gw-starwars-api/commits{/sha}","git_commits_url":"https://api.github.com/repos/contrepoint/pyp-w2-gw-starwars-api/git/commits{/sha}","comments_url":"https://api.github.com/repos/contrepoint/pyp-w2-gw-starwars-api/comments{/number}","issue_comment_url":"https://api.github.com/repos/contrepoint/pyp-w2-gw-starwars-api/issues/comments{/number}","contents_url":"https://api.github.com/repos/contrepoint/pyp-w2-gw-starwars-api/contents/{+path}","compare_url":"https://api.github.com/repos/contrepoint/pyp-w2-gw-starwars-api/compare/{base}...{head}","merges_url":"https://api.github.com/repos/contrepoint/pyp-w2-gw-starwars-api/merges","archive_url":"https://api.github.com/repos/contrepoint/pyp-w2-gw-starwars-api/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/contrepoint/pyp-w2-gw-starwars-api/downloads","issues_url":"https://api.github.com/repos/contrepoint/pyp-w2-gw-starwars-api/issues{/number}","pulls_url":"https://api.github.com/repos/contrepoint/pyp-w2-gw-starwars-api/pulls{/number}","milestones_url":"https://api.github.com/repos/contrepoint/pyp-w2-gw-starwars-api/milestones{/number}","notifications_url":"https://api.github.com/repos/contrepoint/pyp-w2-gw-starwars-api/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/contrepoint/pyp-w2-gw-starwars-api/labels{/name}","releases_url":"https://api.github.com/repos/contrepoint/pyp-w2-gw-starwars-api/releases{/id}","deployments_url":"https://api.github.com/repos/contrepoint/pyp-w2-gw-starwars-api/deployments","created_at":"2016-10-22T18:01:42Z","updated_at":"2016-10-22T18:01:43Z","pushed_at":"2016-10-28T14:02:26Z","git_url":"git://github.com/contrepoint/pyp-w2-gw-starwars-api.git","ssh_url":"git@github.com:contrepoint/pyp-w2-gw-starwars-api.git","clone_url":"https://github.com/contrepoint/pyp-w2-gw-starwars-api.git","svn_url":"https://github.com/contrepoint/pyp-w2-gw-starwars-api","homepage":null,"size":30,"stargazers_count":0,"watchers_count":0,"language":"Python","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":"master"}},"base":{"label":"rmotr-group-projects:master","ref":"master","sha":"764e4bb56349a784d64de85b48aea2015fb68165","user":{"login":"rmotr-group-projects","id":18366789,"avatar_url":"https://avatars.githubusercontent.com/u/18366789?v=3","gravatar_id":"","url":"https://api.github.com/users/rmotr-group-projects","html_url":"https://github.com/rmotr-group-projects","followers_url":"https://api.github.com/users/rmotr-group-projects/followers","following_url":"https://api.github.com/users/rmotr-group-projects/following{/other_user}","gists_url":"https://api.github.com/users/rmotr-group-projects/gists{/gist_id}","starred_url":"https://api.github.com/users/rmotr-group-projects/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rmotr-group-projects/subscriptions","organizations_url":"https://api.github.com/users/rmotr-group-projects/orgs","repos_url":"https://api.github.com/users/rmotr-group-projects/repos","events_url":"https://api.github.com/users/rmotr-group-projects/events{/privacy}","received_events_url":"https://api.github.com/users/rmotr-group-projects/received_events","type":"Organization","site_admin":false},"repo":{"id":59842136,"name":"pyp-w2-gw-starwars-api","full_name":"rmotr-group-projects/pyp-w2-gw-starwars-api","owner":{"login":"rmotr-group-projects","id":18366789,"avatar_url":"https://avatars.githubusercontent.com/u/18366789?v=3","gravatar_id":"","url":"https://api.github.com/users/rmotr-group-projects","html_url":"https://github.com/rmotr-group-projects","followers_url":"https://api.github.com/users/rmotr-group-projects/followers","following_url":"https://api.github.com/users/rmotr-group-projects/following{/other_user}","gists_url":"https://api.github.com/users/rmotr-group-projects/gists{/gist_id}","starred_url":"https://api.github.com/users/rmotr-group-projects/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rmotr-group-projects/subscriptions","organizations_url":"https://api.github.com/users/rmotr-group-projects/orgs","repos_url":"https://api.github.com/users/rmotr-group-projects/repos","events_url":"https://api.github.com/users/rmotr-group-projects/events{/privacy}","received_events_url":"https://api.github.com/users/rmotr-group-projects/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/rmotr-group-projects/pyp-w2-gw-starwars-api","description":"Star Wars API","fork":false,"url":"https://api.github.com/repos/rmotr-group-projects/pyp-w2-gw-starwars-api","forks_url":"https://api.github.com/repos/rmotr-group-projects/pyp-w2-gw-starwars-api/forks","keys_url":"https://api.github.com/repos/rmotr-group-projects/pyp-w2-gw-starwars-api/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rmotr-group-projects/pyp-w2-gw-starwars-api/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rmotr-group-projects/pyp-w2-gw-starwars-api/teams","hooks_url":"https://api.github.com/repos/rmotr-group-projects/pyp-w2-gw-starwars-api/hooks","issue_events_url":"https://api.github.com/repos/rmotr-group-projects/pyp-w2-gw-starwars-api/issues/events{/number}","events_url":"https://api.github.com/repos/rmotr-group-projects/pyp-w2-gw-starwars-api/events","assignees_url":"https://api.github.com/repos/rmotr-group-projects/pyp-w2-gw-starwars-api/assignees{/user}","branches_url":"https://api.github.com/repos/rmotr-group-projects/pyp-w2-gw-starwars-api/branches{/branch}","tags_url":"https://api.github.com/repos/rmotr-group-projects/pyp-w2-gw-starwars-api/tags","blobs_url":"https://api.github.com/repos/rmotr-group-projects/pyp-w2-gw-starwars-api/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rmotr-group-projects/pyp-w2-gw-starwars-api/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rmotr-group-projects/pyp-w2-gw-starwars-api/git/refs{/sha}","trees_url":"https://api.github.com/repos/rmotr-group-projects/pyp-w2-gw-starwars-api/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rmotr-group-projects/pyp-w2-gw-starwars-api/statuses/{sha}","languages_url":"https://api.github.com/repos/rmotr-group-projects/pyp-w2-gw-starwars-api/languages","stargazers_url":"https://api.github.com/repos/rmotr-group-projects/pyp-w2-gw-starwars-api/stargazers","contributors_url":"https://api.github.com/repos/rmotr-group-projects/pyp-w2-gw-starwars-api/contributors","subscribers_url":"https://api.github.com/repos/rmotr-group-projects/pyp-w2-gw-starwars-api/subscribers","subscription_url":"https://api.github.com/repos/rmotr-group-projects/pyp-w2-gw-starwars-api/subscription","commits_url":"https://api.github.com/repos/rmotr-group-projects/pyp-w2-gw-starwars-api/commits{/sha}","git_commits_url":"https://api.github.com/repos/rmotr-group-projects/pyp-w2-gw-starwars-api/git/commits{/sha}","comments_url":"https://api.github.com/repos/rmotr-group-projects/pyp-w2-gw-starwars-api/comments{/number}","issue_comment_url":"https://api.github.com/repos/rmotr-group-projects/pyp-w2-gw-starwars-api/issues/comments{/number}","contents_url":"https://api.github.com/repos/rmotr-group-projects/pyp-w2-gw-starwars-api/contents/{+path}","compare_url":"https://api.github.com/repos/rmotr-group-projects/pyp-w2-gw-starwars-api/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rmotr-group-projects/pyp-w2-gw-starwars-api/merges","archive_url":"https://api.github.com/repos/rmotr-group-projects/pyp-w2-gw-starwars-api/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rmotr-group-projects/pyp-w2-gw-starwars-api/downloads","issues_url":"https://api.github.com/repos/rmotr-group-projects/pyp-w2-gw-starwars-api/issues{/number}","pulls_url":"https://api.github.com/repos/rmotr-group-projects/pyp-w2-gw-starwars-api/pulls{/number}","milestones_url":"https://api.github.com/repos/rmotr-group-projects/pyp-w2-gw-starwars-api/milestones{/number}","notifications_url":"https://api.github.com/repos/rmotr-group-projects/pyp-w2-gw-starwars-api/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rmotr-group-projects/pyp-w2-gw-starwars-api/labels{/name}","releases_url":"https://api.github.com/repos/rmotr-group-projects/pyp-w2-gw-starwars-api/releases{/id}","deployments_url":"https://api.github.com/repos/rmotr-group-projects/pyp-w2-gw-starwars-api/deployments","created_at":"2016-05-27T14:52:05Z","updated_at":"2016-10-27T21:58:58Z","pushed_at":"2016-10-28T15:36:25Z","git_url":"git://github.com/rmotr-group-projects/pyp-w2-gw-starwars-api.git","ssh_url":"git@github.com:rmotr-group-projects/pyp-w2-gw-starwars-api.git","clone_url":"https://github.com/rmotr-group-projects/pyp-w2-gw-starwars-api.git","svn_url":"https://github.com/rmotr-group-projects/pyp-w2-gw-starwars-api","homepage":null,"size":1567,"stargazers_count":2,"watchers_count":2,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":50,"mirror_url":null,"open_issues_count":4,"forks":50,"open_issues":4,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/rmotr-group-projects/pyp-w2-gw-starwars-api/pulls/26"},"html":{"href":"https://github.com/rmotr-group-projects/pyp-w2-gw-starwars-api/pull/26"},"issue":{"href":"https://api.github.com/repos/rmotr-group-projects/pyp-w2-gw-starwars-api/issues/26"},"comments":{"href":"https://api.github.com/repos/rmotr-group-projects/pyp-w2-gw-starwars-api/issues/26/comments"},"review_comments":{"href":"https://api.github.com/repos/rmotr-group-projects/pyp-w2-gw-starwars-api/pulls/26/comments"},"review_comment":{"href":"https://api.github.com/repos/rmotr-group-projects/pyp-w2-gw-starwars-api/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/rmotr-group-projects/pyp-w2-gw-starwars-api/pulls/26/commits"},"statuses":{"href":"https://api.github.com/repos/rmotr-group-projects/pyp-w2-gw-starwars-api/statuses/4896bc13b88e5b5c54563ce01d463316ec7059e9"}}}}
{"actor":{"display_login":"StefGou"}}