{"action":"created","comment":{"url":"https://api.github.com/repos/mamicart/mamicart-backend/pulls/comments/73792607","id":73792607,"diff_hunk":"@@ -0,0 +1,89 @@\n+from rest_framework.serializers import (\n+    ModelSerializer,\n+    SerializerMethodField,\n+)\n+\n+from mamicart.cart.models import Cart, CartItem\n+\n+\n+class CartItemCreateUpdateSerializer(ModelSerializer):\n+\n+    class Meta:\n+        model = CartItem\n+\n+        fields = [\n+            'title',\n+            'cart',\n+        ]\n+\n+\n+class CartItemSerializer(ModelSerializer):\n+    cart_title = SerializerMethodField()\n+    cart_id = SerializerMethodField()\n+\n+    class Meta:\n+        model = CartItem\n+\n+        fields = [\n+            'id',\n+            'title',\n+            'cart_id',","path":"mamicart/cart/api/serializers.py","position":30,"original_position":30,"commit_id":"f32ca0340fba0a742329f56c0f69d2867e3b52d8","original_commit_id":"f32ca0340fba0a742329f56c0f69d2867e3b52d8","user":{"login":"jabbson","id":7067970,"avatar_url":"https://avatars.githubusercontent.com/u/7067970?v=3","gravatar_id":"","url":"https://api.github.com/users/jabbson","html_url":"https://github.com/jabbson","followers_url":"https://api.github.com/users/jabbson/followers","following_url":"https://api.github.com/users/jabbson/following{/other_user}","gists_url":"https://api.github.com/users/jabbson/gists{/gist_id}","starred_url":"https://api.github.com/users/jabbson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jabbson/subscriptions","organizations_url":"https://api.github.com/users/jabbson/orgs","repos_url":"https://api.github.com/users/jabbson/repos","events_url":"https://api.github.com/users/jabbson/events{/privacy}","received_events_url":"https://api.github.com/users/jabbson/received_events","type":"User","site_admin":false},"body":"philosopher detected :)\r\n\r\nPS\r\n> I have seen all the works that are done under the sun; and, behold, all is vanity and vexation of spirit.\r\nEcclesiastes 1:14","created_at":"2016-08-06T22:00:44Z","updated_at":"2016-08-06T22:00:44Z","html_url":"https://github.com/mamicart/mamicart-backend/pull/10#discussion_r73792607","pull_request_url":"https://api.github.com/repos/mamicart/mamicart-backend/pulls/10","_links":{"self":{"href":"https://api.github.com/repos/mamicart/mamicart-backend/pulls/comments/73792607"},"html":{"href":"https://github.com/mamicart/mamicart-backend/pull/10#discussion_r73792607"},"pull_request":{"href":"https://api.github.com/repos/mamicart/mamicart-backend/pulls/10"}}},"pull_request":{"url":"https://api.github.com/repos/mamicart/mamicart-backend/pulls/10","id":80076168,"html_url":"https://github.com/mamicart/mamicart-backend/pull/10","diff_url":"https://github.com/mamicart/mamicart-backend/pull/10.diff","patch_url":"https://github.com/mamicart/mamicart-backend/pull/10.patch","issue_url":"https://api.github.com/repos/mamicart/mamicart-backend/issues/10","number":10,"state":"open","locked":false,"title":"[WIP] Add initial API functionality for Cart and CartItem models","user":{"login":"jabbson","id":7067970,"avatar_url":"https://avatars.githubusercontent.com/u/7067970?v=3","gravatar_id":"","url":"https://api.github.com/users/jabbson","html_url":"https://github.com/jabbson","followers_url":"https://api.github.com/users/jabbson/followers","following_url":"https://api.github.com/users/jabbson/following{/other_user}","gists_url":"https://api.github.com/users/jabbson/gists{/gist_id}","starred_url":"https://api.github.com/users/jabbson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jabbson/subscriptions","organizations_url":"https://api.github.com/users/jabbson/orgs","repos_url":"https://api.github.com/users/jabbson/repos","events_url":"https://api.github.com/users/jabbson/events{/privacy}","received_events_url":"https://api.github.com/users/jabbson/received_events","type":"User","site_admin":false},"body":"This pull request contains the basic API CRUD operations functionality for `Cart` and `CartItem` models as well as basic `User create` and `User list` functions for `User model`.","created_at":"2016-08-04T13:16:12Z","updated_at":"2016-08-06T22:00:44Z","closed_at":null,"merged_at":null,"merge_commit_sha":"2c766950fb3092cba2ad84856882677540946355","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/mamicart/mamicart-backend/pulls/10/commits","review_comments_url":"https://api.github.com/repos/mamicart/mamicart-backend/pulls/10/comments","review_comment_url":"https://api.github.com/repos/mamicart/mamicart-backend/pulls/comments{/number}","comments_url":"https://api.github.com/repos/mamicart/mamicart-backend/issues/10/comments","statuses_url":"https://api.github.com/repos/mamicart/mamicart-backend/statuses/f32ca0340fba0a742329f56c0f69d2867e3b52d8","head":{"label":"jabbson:cart_api","ref":"cart_api","sha":"f32ca0340fba0a742329f56c0f69d2867e3b52d8","user":{"login":"jabbson","id":7067970,"avatar_url":"https://avatars.githubusercontent.com/u/7067970?v=3","gravatar_id":"","url":"https://api.github.com/users/jabbson","html_url":"https://github.com/jabbson","followers_url":"https://api.github.com/users/jabbson/followers","following_url":"https://api.github.com/users/jabbson/following{/other_user}","gists_url":"https://api.github.com/users/jabbson/gists{/gist_id}","starred_url":"https://api.github.com/users/jabbson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jabbson/subscriptions","organizations_url":"https://api.github.com/users/jabbson/orgs","repos_url":"https://api.github.com/users/jabbson/repos","events_url":"https://api.github.com/users/jabbson/events{/privacy}","received_events_url":"https://api.github.com/users/jabbson/received_events","type":"User","site_admin":false},"repo":{"id":63480346,"name":"mamicart-backend","full_name":"jabbson/mamicart-backend","owner":{"login":"jabbson","id":7067970,"avatar_url":"https://avatars.githubusercontent.com/u/7067970?v=3","gravatar_id":"","url":"https://api.github.com/users/jabbson","html_url":"https://github.com/jabbson","followers_url":"https://api.github.com/users/jabbson/followers","following_url":"https://api.github.com/users/jabbson/following{/other_user}","gists_url":"https://api.github.com/users/jabbson/gists{/gist_id}","starred_url":"https://api.github.com/users/jabbson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jabbson/subscriptions","organizations_url":"https://api.github.com/users/jabbson/orgs","repos_url":"https://api.github.com/users/jabbson/repos","events_url":"https://api.github.com/users/jabbson/events{/privacy}","received_events_url":"https://api.github.com/users/jabbson/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jabbson/mamicart-backend","description":null,"fork":true,"url":"https://api.github.com/repos/jabbson/mamicart-backend","forks_url":"https://api.github.com/repos/jabbson/mamicart-backend/forks","keys_url":"https://api.github.com/repos/jabbson/mamicart-backend/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jabbson/mamicart-backend/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jabbson/mamicart-backend/teams","hooks_url":"https://api.github.com/repos/jabbson/mamicart-backend/hooks","issue_events_url":"https://api.github.com/repos/jabbson/mamicart-backend/issues/events{/number}","events_url":"https://api.github.com/repos/jabbson/mamicart-backend/events","assignees_url":"https://api.github.com/repos/jabbson/mamicart-backend/assignees{/user}","branches_url":"https://api.github.com/repos/jabbson/mamicart-backend/branches{/branch}","tags_url":"https://api.github.com/repos/jabbson/mamicart-backend/tags","blobs_url":"https://api.github.com/repos/jabbson/mamicart-backend/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jabbson/mamicart-backend/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jabbson/mamicart-backend/git/refs{/sha}","trees_url":"https://api.github.com/repos/jabbson/mamicart-backend/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jabbson/mamicart-backend/statuses/{sha}","languages_url":"https://api.github.com/repos/jabbson/mamicart-backend/languages","stargazers_url":"https://api.github.com/repos/jabbson/mamicart-backend/stargazers","contributors_url":"https://api.github.com/repos/jabbson/mamicart-backend/contributors","subscribers_url":"https://api.github.com/repos/jabbson/mamicart-backend/subscribers","subscription_url":"https://api.github.com/repos/jabbson/mamicart-backend/subscription","commits_url":"https://api.github.com/repos/jabbson/mamicart-backend/commits{/sha}","git_commits_url":"https://api.github.com/repos/jabbson/mamicart-backend/git/commits{/sha}","comments_url":"https://api.github.com/repos/jabbson/mamicart-backend/comments{/number}","issue_comment_url":"https://api.github.com/repos/jabbson/mamicart-backend/issues/comments{/number}","contents_url":"https://api.github.com/repos/jabbson/mamicart-backend/contents/{+path}","compare_url":"https://api.github.com/repos/jabbson/mamicart-backend/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jabbson/mamicart-backend/merges","archive_url":"https://api.github.com/repos/jabbson/mamicart-backend/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jabbson/mamicart-backend/downloads","issues_url":"https://api.github.com/repos/jabbson/mamicart-backend/issues{/number}","pulls_url":"https://api.github.com/repos/jabbson/mamicart-backend/pulls{/number}","milestones_url":"https://api.github.com/repos/jabbson/mamicart-backend/milestones{/number}","notifications_url":"https://api.github.com/repos/jabbson/mamicart-backend/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jabbson/mamicart-backend/labels{/name}","releases_url":"https://api.github.com/repos/jabbson/mamicart-backend/releases{/id}","deployments_url":"https://api.github.com/repos/jabbson/mamicart-backend/deployments","created_at":"2016-07-16T11:41:52Z","updated_at":"2016-07-16T11:41:53Z","pushed_at":"2016-08-04T12:49:09Z","git_url":"git://github.com/jabbson/mamicart-backend.git","ssh_url":"git@github.com:jabbson/mamicart-backend.git","clone_url":"https://github.com/jabbson/mamicart-backend.git","svn_url":"https://github.com/jabbson/mamicart-backend","homepage":null,"size":13,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":false,"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":"mamicart:master","ref":"master","sha":"ef88314d37b905d20514bee0c4bb3a2614966f0f","user":{"login":"mamicart","id":20489356,"avatar_url":"https://avatars.githubusercontent.com/u/20489356?v=3","gravatar_id":"","url":"https://api.github.com/users/mamicart","html_url":"https://github.com/mamicart","followers_url":"https://api.github.com/users/mamicart/followers","following_url":"https://api.github.com/users/mamicart/following{/other_user}","gists_url":"https://api.github.com/users/mamicart/gists{/gist_id}","starred_url":"https://api.github.com/users/mamicart/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mamicart/subscriptions","organizations_url":"https://api.github.com/users/mamicart/orgs","repos_url":"https://api.github.com/users/mamicart/repos","events_url":"https://api.github.com/users/mamicart/events{/privacy}","received_events_url":"https://api.github.com/users/mamicart/received_events","type":"Organization","site_admin":false},"repo":{"id":63479002,"name":"mamicart-backend","full_name":"mamicart/mamicart-backend","owner":{"login":"mamicart","id":20489356,"avatar_url":"https://avatars.githubusercontent.com/u/20489356?v=3","gravatar_id":"","url":"https://api.github.com/users/mamicart","html_url":"https://github.com/mamicart","followers_url":"https://api.github.com/users/mamicart/followers","following_url":"https://api.github.com/users/mamicart/following{/other_user}","gists_url":"https://api.github.com/users/mamicart/gists{/gist_id}","starred_url":"https://api.github.com/users/mamicart/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mamicart/subscriptions","organizations_url":"https://api.github.com/users/mamicart/orgs","repos_url":"https://api.github.com/users/mamicart/repos","events_url":"https://api.github.com/users/mamicart/events{/privacy}","received_events_url":"https://api.github.com/users/mamicart/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/mamicart/mamicart-backend","description":"Educational project. A shopping list application. Backend.","fork":false,"url":"https://api.github.com/repos/mamicart/mamicart-backend","forks_url":"https://api.github.com/repos/mamicart/mamicart-backend/forks","keys_url":"https://api.github.com/repos/mamicart/mamicart-backend/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mamicart/mamicart-backend/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mamicart/mamicart-backend/teams","hooks_url":"https://api.github.com/repos/mamicart/mamicart-backend/hooks","issue_events_url":"https://api.github.com/repos/mamicart/mamicart-backend/issues/events{/number}","events_url":"https://api.github.com/repos/mamicart/mamicart-backend/events","assignees_url":"https://api.github.com/repos/mamicart/mamicart-backend/assignees{/user}","branches_url":"https://api.github.com/repos/mamicart/mamicart-backend/branches{/branch}","tags_url":"https://api.github.com/repos/mamicart/mamicart-backend/tags","blobs_url":"https://api.github.com/repos/mamicart/mamicart-backend/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mamicart/mamicart-backend/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mamicart/mamicart-backend/git/refs{/sha}","trees_url":"https://api.github.com/repos/mamicart/mamicart-backend/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mamicart/mamicart-backend/statuses/{sha}","languages_url":"https://api.github.com/repos/mamicart/mamicart-backend/languages","stargazers_url":"https://api.github.com/repos/mamicart/mamicart-backend/stargazers","contributors_url":"https://api.github.com/repos/mamicart/mamicart-backend/contributors","subscribers_url":"https://api.github.com/repos/mamicart/mamicart-backend/subscribers","subscription_url":"https://api.github.com/repos/mamicart/mamicart-backend/subscription","commits_url":"https://api.github.com/repos/mamicart/mamicart-backend/commits{/sha}","git_commits_url":"https://api.github.com/repos/mamicart/mamicart-backend/git/commits{/sha}","comments_url":"https://api.github.com/repos/mamicart/mamicart-backend/comments{/number}","issue_comment_url":"https://api.github.com/repos/mamicart/mamicart-backend/issues/comments{/number}","contents_url":"https://api.github.com/repos/mamicart/mamicart-backend/contents/{+path}","compare_url":"https://api.github.com/repos/mamicart/mamicart-backend/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mamicart/mamicart-backend/merges","archive_url":"https://api.github.com/repos/mamicart/mamicart-backend/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mamicart/mamicart-backend/downloads","issues_url":"https://api.github.com/repos/mamicart/mamicart-backend/issues{/number}","pulls_url":"https://api.github.com/repos/mamicart/mamicart-backend/pulls{/number}","milestones_url":"https://api.github.com/repos/mamicart/mamicart-backend/milestones{/number}","notifications_url":"https://api.github.com/repos/mamicart/mamicart-backend/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mamicart/mamicart-backend/labels{/name}","releases_url":"https://api.github.com/repos/mamicart/mamicart-backend/releases{/id}","deployments_url":"https://api.github.com/repos/mamicart/mamicart-backend/deployments","created_at":"2016-07-16T11:01:51Z","updated_at":"2016-07-16T12:31:14Z","pushed_at":"2016-08-04T13:16:12Z","git_url":"git://github.com/mamicart/mamicart-backend.git","ssh_url":"git@github.com:mamicart/mamicart-backend.git","clone_url":"https://github.com/mamicart/mamicart-backend.git","svn_url":"https://github.com/mamicart/mamicart-backend","homepage":"","size":13,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":9,"forks":1,"open_issues":9,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/mamicart/mamicart-backend/pulls/10"},"html":{"href":"https://github.com/mamicart/mamicart-backend/pull/10"},"issue":{"href":"https://api.github.com/repos/mamicart/mamicart-backend/issues/10"},"comments":{"href":"https://api.github.com/repos/mamicart/mamicart-backend/issues/10/comments"},"review_comments":{"href":"https://api.github.com/repos/mamicart/mamicart-backend/pulls/10/comments"},"review_comment":{"href":"https://api.github.com/repos/mamicart/mamicart-backend/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/mamicart/mamicart-backend/pulls/10/commits"},"statuses":{"href":"https://api.github.com/repos/mamicart/mamicart-backend/statuses/f32ca0340fba0a742329f56c0f69d2867e3b52d8"}}}}
{"actor":{"display_login":"jabbson"}}