{"action":"created","comment":{"url":"https://api.github.com/repos/mwcschool/ecommerce_api/pulls/comments/122905025","pull_request_review_id":45058397,"id":122905025,"diff_hunk":"@@ -119,20 +130,17 @@ class OrderItem(BaseModel):\n     quantity = IntegerField()\n     subtotal = DecimalField()\n \n-\n-class Picture(BaseModel):\n-    uuid = UUIDField(unique=True)\n-    title = CharField()\n-    extension = CharField()\n-    item = ForeignKeyField(Item, related_name=\"pictures\")\n-\n     def json(self):\n         return {\n             'uuid': str(self.uuid),\n             'title': self.title,\n             'extension': self.extension,\n         }\n \n+        @classmethod\n+        def get_schema(cls):\n+            return PictureSchema()\n+","path":"models.py","position":48,"original_position":48,"commit_id":"a8b6d67cab646b4cad10b8c022a396db621d0a13","original_commit_id":"a8b6d67cab646b4cad10b8c022a396db621d0a13","user":{"login":"GendoIkari","id":133683,"avatar_url":"https://avatars3.githubusercontent.com/u/133683?v=3","gravatar_id":"","url":"https://api.github.com/users/GendoIkari","html_url":"https://github.com/GendoIkari","followers_url":"https://api.github.com/users/GendoIkari/followers","following_url":"https://api.github.com/users/GendoIkari/following{/other_user}","gists_url":"https://api.github.com/users/GendoIkari/gists{/gist_id}","starred_url":"https://api.github.com/users/GendoIkari/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GendoIkari/subscriptions","organizations_url":"https://api.github.com/users/GendoIkari/orgs","repos_url":"https://api.github.com/users/GendoIkari/repos","events_url":"https://api.github.com/users/GendoIkari/events{/privacy}","received_events_url":"https://api.github.com/users/GendoIkari/received_events","type":"User","site_admin":false},"body":"Questo OrderItem che ha come schema PictureSchema non mi sembra proprio corretto. Copy-paste andato male?","created_at":"2017-06-20T08:00:13Z","updated_at":"2017-06-20T08:00:13Z","html_url":"https://github.com/mwcschool/ecommerce_api/pull/80#discussion_r122905025","pull_request_url":"https://api.github.com/repos/mwcschool/ecommerce_api/pulls/80","_links":{"self":{"href":"https://api.github.com/repos/mwcschool/ecommerce_api/pulls/comments/122905025"},"html":{"href":"https://github.com/mwcschool/ecommerce_api/pull/80#discussion_r122905025"},"pull_request":{"href":"https://api.github.com/repos/mwcschool/ecommerce_api/pulls/80"}}},"pull_request":{"url":"https://api.github.com/repos/mwcschool/ecommerce_api/pulls/80","id":125169896,"html_url":"https://github.com/mwcschool/ecommerce_api/pull/80","diff_url":"https://github.com/mwcschool/ecommerce_api/pull/80.diff","patch_url":"https://github.com/mwcschool/ecommerce_api/pull/80.patch","issue_url":"https://api.github.com/repos/mwcschool/ecommerce_api/issues/80","number":80,"state":"open","locked":false,"title":"72 pictures schema","user":{"login":"drenzetti","id":27857721,"avatar_url":"https://avatars0.githubusercontent.com/u/27857721?v=3","gravatar_id":"","url":"https://api.github.com/users/drenzetti","html_url":"https://github.com/drenzetti","followers_url":"https://api.github.com/users/drenzetti/followers","following_url":"https://api.github.com/users/drenzetti/following{/other_user}","gists_url":"https://api.github.com/users/drenzetti/gists{/gist_id}","starred_url":"https://api.github.com/users/drenzetti/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/drenzetti/subscriptions","organizations_url":"https://api.github.com/users/drenzetti/orgs","repos_url":"https://api.github.com/users/drenzetti/repos","events_url":"https://api.github.com/users/drenzetti/events{/privacy}","received_events_url":"https://api.github.com/users/drenzetti/received_events","type":"User","site_admin":false},"body":"","created_at":"2017-06-12T15:53:07Z","updated_at":"2017-06-20T08:00:13Z","closed_at":null,"merged_at":null,"merge_commit_sha":"d51a927d9c6715432c4c1409650b67cdae030d7e","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/mwcschool/ecommerce_api/pulls/80/commits","review_comments_url":"https://api.github.com/repos/mwcschool/ecommerce_api/pulls/80/comments","review_comment_url":"https://api.github.com/repos/mwcschool/ecommerce_api/pulls/comments{/number}","comments_url":"https://api.github.com/repos/mwcschool/ecommerce_api/issues/80/comments","statuses_url":"https://api.github.com/repos/mwcschool/ecommerce_api/statuses/a8b6d67cab646b4cad10b8c022a396db621d0a13","head":{"label":"drenzetti:72_pictures_schema","ref":"72_pictures_schema","sha":"a8b6d67cab646b4cad10b8c022a396db621d0a13","user":{"login":"drenzetti","id":27857721,"avatar_url":"https://avatars0.githubusercontent.com/u/27857721?v=3","gravatar_id":"","url":"https://api.github.com/users/drenzetti","html_url":"https://github.com/drenzetti","followers_url":"https://api.github.com/users/drenzetti/followers","following_url":"https://api.github.com/users/drenzetti/following{/other_user}","gists_url":"https://api.github.com/users/drenzetti/gists{/gist_id}","starred_url":"https://api.github.com/users/drenzetti/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/drenzetti/subscriptions","organizations_url":"https://api.github.com/users/drenzetti/orgs","repos_url":"https://api.github.com/users/drenzetti/repos","events_url":"https://api.github.com/users/drenzetti/events{/privacy}","received_events_url":"https://api.github.com/users/drenzetti/received_events","type":"User","site_admin":false},"repo":{"id":90352086,"name":"ecommerce_api","full_name":"drenzetti/ecommerce_api","owner":{"login":"drenzetti","id":27857721,"avatar_url":"https://avatars0.githubusercontent.com/u/27857721?v=3","gravatar_id":"","url":"https://api.github.com/users/drenzetti","html_url":"https://github.com/drenzetti","followers_url":"https://api.github.com/users/drenzetti/followers","following_url":"https://api.github.com/users/drenzetti/following{/other_user}","gists_url":"https://api.github.com/users/drenzetti/gists{/gist_id}","starred_url":"https://api.github.com/users/drenzetti/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/drenzetti/subscriptions","organizations_url":"https://api.github.com/users/drenzetti/orgs","repos_url":"https://api.github.com/users/drenzetti/repos","events_url":"https://api.github.com/users/drenzetti/events{/privacy}","received_events_url":"https://api.github.com/users/drenzetti/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/drenzetti/ecommerce_api","description":null,"fork":true,"url":"https://api.github.com/repos/drenzetti/ecommerce_api","forks_url":"https://api.github.com/repos/drenzetti/ecommerce_api/forks","keys_url":"https://api.github.com/repos/drenzetti/ecommerce_api/keys{/key_id}","collaborators_url":"https://api.github.com/repos/drenzetti/ecommerce_api/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/drenzetti/ecommerce_api/teams","hooks_url":"https://api.github.com/repos/drenzetti/ecommerce_api/hooks","issue_events_url":"https://api.github.com/repos/drenzetti/ecommerce_api/issues/events{/number}","events_url":"https://api.github.com/repos/drenzetti/ecommerce_api/events","assignees_url":"https://api.github.com/repos/drenzetti/ecommerce_api/assignees{/user}","branches_url":"https://api.github.com/repos/drenzetti/ecommerce_api/branches{/branch}","tags_url":"https://api.github.com/repos/drenzetti/ecommerce_api/tags","blobs_url":"https://api.github.com/repos/drenzetti/ecommerce_api/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/drenzetti/ecommerce_api/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/drenzetti/ecommerce_api/git/refs{/sha}","trees_url":"https://api.github.com/repos/drenzetti/ecommerce_api/git/trees{/sha}","statuses_url":"https://api.github.com/repos/drenzetti/ecommerce_api/statuses/{sha}","languages_url":"https://api.github.com/repos/drenzetti/ecommerce_api/languages","stargazers_url":"https://api.github.com/repos/drenzetti/ecommerce_api/stargazers","contributors_url":"https://api.github.com/repos/drenzetti/ecommerce_api/contributors","subscribers_url":"https://api.github.com/repos/drenzetti/ecommerce_api/subscribers","subscription_url":"https://api.github.com/repos/drenzetti/ecommerce_api/subscription","commits_url":"https://api.github.com/repos/drenzetti/ecommerce_api/commits{/sha}","git_commits_url":"https://api.github.com/repos/drenzetti/ecommerce_api/git/commits{/sha}","comments_url":"https://api.github.com/repos/drenzetti/ecommerce_api/comments{/number}","issue_comment_url":"https://api.github.com/repos/drenzetti/ecommerce_api/issues/comments{/number}","contents_url":"https://api.github.com/repos/drenzetti/ecommerce_api/contents/{+path}","compare_url":"https://api.github.com/repos/drenzetti/ecommerce_api/compare/{base}...{head}","merges_url":"https://api.github.com/repos/drenzetti/ecommerce_api/merges","archive_url":"https://api.github.com/repos/drenzetti/ecommerce_api/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/drenzetti/ecommerce_api/downloads","issues_url":"https://api.github.com/repos/drenzetti/ecommerce_api/issues{/number}","pulls_url":"https://api.github.com/repos/drenzetti/ecommerce_api/pulls{/number}","milestones_url":"https://api.github.com/repos/drenzetti/ecommerce_api/milestones{/number}","notifications_url":"https://api.github.com/repos/drenzetti/ecommerce_api/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/drenzetti/ecommerce_api/labels{/name}","releases_url":"https://api.github.com/repos/drenzetti/ecommerce_api/releases{/id}","deployments_url":"https://api.github.com/repos/drenzetti/ecommerce_api/deployments","created_at":"2017-05-05T08:00:45Z","updated_at":"2017-05-05T08:00:46Z","pushed_at":"2017-06-12T15:52:15Z","git_url":"git://github.com/drenzetti/ecommerce_api.git","ssh_url":"git@github.com:drenzetti/ecommerce_api.git","clone_url":"https://github.com/drenzetti/ecommerce_api.git","svn_url":"https://github.com/drenzetti/ecommerce_api","homepage":null,"size":72,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_projects":true,"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":"mwcschool:master","ref":"master","sha":"2dd2e370ce1dd79e88cf0480a3332625da2a3e44","user":{"login":"mwcschool","id":28253621,"avatar_url":"https://avatars1.githubusercontent.com/u/28253621?v=3","gravatar_id":"","url":"https://api.github.com/users/mwcschool","html_url":"https://github.com/mwcschool","followers_url":"https://api.github.com/users/mwcschool/followers","following_url":"https://api.github.com/users/mwcschool/following{/other_user}","gists_url":"https://api.github.com/users/mwcschool/gists{/gist_id}","starred_url":"https://api.github.com/users/mwcschool/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mwcschool/subscriptions","organizations_url":"https://api.github.com/users/mwcschool/orgs","repos_url":"https://api.github.com/users/mwcschool/repos","events_url":"https://api.github.com/users/mwcschool/events{/privacy}","received_events_url":"https://api.github.com/users/mwcschool/received_events","type":"Organization","site_admin":false},"repo":{"id":89910012,"name":"ecommerce_api","full_name":"mwcschool/ecommerce_api","owner":{"login":"mwcschool","id":28253621,"avatar_url":"https://avatars1.githubusercontent.com/u/28253621?v=3","gravatar_id":"","url":"https://api.github.com/users/mwcschool","html_url":"https://github.com/mwcschool","followers_url":"https://api.github.com/users/mwcschool/followers","following_url":"https://api.github.com/users/mwcschool/following{/other_user}","gists_url":"https://api.github.com/users/mwcschool/gists{/gist_id}","starred_url":"https://api.github.com/users/mwcschool/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mwcschool/subscriptions","organizations_url":"https://api.github.com/users/mwcschool/orgs","repos_url":"https://api.github.com/users/mwcschool/repos","events_url":"https://api.github.com/users/mwcschool/events{/privacy}","received_events_url":"https://api.github.com/users/mwcschool/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/mwcschool/ecommerce_api","description":null,"fork":false,"url":"https://api.github.com/repos/mwcschool/ecommerce_api","forks_url":"https://api.github.com/repos/mwcschool/ecommerce_api/forks","keys_url":"https://api.github.com/repos/mwcschool/ecommerce_api/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mwcschool/ecommerce_api/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mwcschool/ecommerce_api/teams","hooks_url":"https://api.github.com/repos/mwcschool/ecommerce_api/hooks","issue_events_url":"https://api.github.com/repos/mwcschool/ecommerce_api/issues/events{/number}","events_url":"https://api.github.com/repos/mwcschool/ecommerce_api/events","assignees_url":"https://api.github.com/repos/mwcschool/ecommerce_api/assignees{/user}","branches_url":"https://api.github.com/repos/mwcschool/ecommerce_api/branches{/branch}","tags_url":"https://api.github.com/repos/mwcschool/ecommerce_api/tags","blobs_url":"https://api.github.com/repos/mwcschool/ecommerce_api/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mwcschool/ecommerce_api/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mwcschool/ecommerce_api/git/refs{/sha}","trees_url":"https://api.github.com/repos/mwcschool/ecommerce_api/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mwcschool/ecommerce_api/statuses/{sha}","languages_url":"https://api.github.com/repos/mwcschool/ecommerce_api/languages","stargazers_url":"https://api.github.com/repos/mwcschool/ecommerce_api/stargazers","contributors_url":"https://api.github.com/repos/mwcschool/ecommerce_api/contributors","subscribers_url":"https://api.github.com/repos/mwcschool/ecommerce_api/subscribers","subscription_url":"https://api.github.com/repos/mwcschool/ecommerce_api/subscription","commits_url":"https://api.github.com/repos/mwcschool/ecommerce_api/commits{/sha}","git_commits_url":"https://api.github.com/repos/mwcschool/ecommerce_api/git/commits{/sha}","comments_url":"https://api.github.com/repos/mwcschool/ecommerce_api/comments{/number}","issue_comment_url":"https://api.github.com/repos/mwcschool/ecommerce_api/issues/comments{/number}","contents_url":"https://api.github.com/repos/mwcschool/ecommerce_api/contents/{+path}","compare_url":"https://api.github.com/repos/mwcschool/ecommerce_api/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mwcschool/ecommerce_api/merges","archive_url":"https://api.github.com/repos/mwcschool/ecommerce_api/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mwcschool/ecommerce_api/downloads","issues_url":"https://api.github.com/repos/mwcschool/ecommerce_api/issues{/number}","pulls_url":"https://api.github.com/repos/mwcschool/ecommerce_api/pulls{/number}","milestones_url":"https://api.github.com/repos/mwcschool/ecommerce_api/milestones{/number}","notifications_url":"https://api.github.com/repos/mwcschool/ecommerce_api/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mwcschool/ecommerce_api/labels{/name}","releases_url":"https://api.github.com/repos/mwcschool/ecommerce_api/releases{/id}","deployments_url":"https://api.github.com/repos/mwcschool/ecommerce_api/deployments","created_at":"2017-05-01T08:51:16Z","updated_at":"2017-05-01T09:09:23Z","pushed_at":"2017-06-20T07:45:56Z","git_url":"git://github.com/mwcschool/ecommerce_api.git","ssh_url":"git@github.com:mwcschool/ecommerce_api.git","clone_url":"https://github.com/mwcschool/ecommerce_api.git","svn_url":"https://github.com/mwcschool/ecommerce_api","homepage":null,"size":110,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":9,"mirror_url":null,"open_issues_count":15,"forks":9,"open_issues":15,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/mwcschool/ecommerce_api/pulls/80"},"html":{"href":"https://github.com/mwcschool/ecommerce_api/pull/80"},"issue":{"href":"https://api.github.com/repos/mwcschool/ecommerce_api/issues/80"},"comments":{"href":"https://api.github.com/repos/mwcschool/ecommerce_api/issues/80/comments"},"review_comments":{"href":"https://api.github.com/repos/mwcschool/ecommerce_api/pulls/80/comments"},"review_comment":{"href":"https://api.github.com/repos/mwcschool/ecommerce_api/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/mwcschool/ecommerce_api/pulls/80/commits"},"statuses":{"href":"https://api.github.com/repos/mwcschool/ecommerce_api/statuses/a8b6d67cab646b4cad10b8c022a396db621d0a13"}}}}
{"actor":{"display_login":"GendoIkari"}}