{"action":"created","comment":{"url":"https://api.github.com/repos/exclusive-gix/cs2102-store/pulls/comments/27343082","id":27343082,"diff_hunk":"@@ -0,0 +1,40 @@\n+from django.db import models\n+from django.contrib.auth.models import User\n+\n+import multimedia\n+\n+class Cart(models.Model):\n+    id = models.AutoField(primary_key=True)\n+    buyer = models.ForeignKey(User)\n+    created_at = models.DateTimeField(auto_now_add=True)\n+    modified_at = models.DateTimeField(auto_now=True)\n+\n+    class Meta:\n+        managed = False\n+        db_table = 'cart'\n+\n+\n+class CartItem(models.Model):\n+    id = models.AutoField(primary_key=True)\n+    cart = models.ForeignKey('Cart')\n+    object = models.ForeignKey(multimedia.models.Multimedia)","path":"transaction/models.py","position":20,"original_position":20,"commit_id":"ee0a8a4a1a89a95b77a47612223c72e46d123453","original_commit_id":"ee0a8a4a1a89a95b77a47612223c72e46d123453","user":{"login":"9gix","id":493668,"avatar_url":"https://avatars.githubusercontent.com/u/493668?v=3","gravatar_id":"","url":"https://api.github.com/users/9gix","html_url":"https://github.com/9gix","followers_url":"https://api.github.com/users/9gix/followers","following_url":"https://api.github.com/users/9gix/following{/other_user}","gists_url":"https://api.github.com/users/9gix/gists{/gist_id}","starred_url":"https://api.github.com/users/9gix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/9gix/subscriptions","organizations_url":"https://api.github.com/users/9gix/orgs","repos_url":"https://api.github.com/users/9gix/repos","events_url":"https://api.github.com/users/9gix/events{/privacy}","received_events_url":"https://api.github.com/users/9gix/received_events","type":"User","site_admin":false},"body":"@mikelimantara avoid overwriting the `object` of python global variable.","created_at":"2015-03-28T07:27:13Z","updated_at":"2015-03-28T07:27:13Z","html_url":"https://github.com/exclusive-gix/cs2102-store/pull/22#discussion_r27343082","pull_request_url":"https://api.github.com/repos/exclusive-gix/cs2102-store/pulls/22","_links":{"self":{"href":"https://api.github.com/repos/exclusive-gix/cs2102-store/pulls/comments/27343082"},"html":{"href":"https://github.com/exclusive-gix/cs2102-store/pull/22#discussion_r27343082"},"pull_request":{"href":"https://api.github.com/repos/exclusive-gix/cs2102-store/pulls/22"}}},"pull_request":{"url":"https://api.github.com/repos/exclusive-gix/cs2102-store/pulls/22","id":32160191,"html_url":"https://github.com/exclusive-gix/cs2102-store/pull/22","diff_url":"https://github.com/exclusive-gix/cs2102-store/pull/22.diff","patch_url":"https://github.com/exclusive-gix/cs2102-store/pull/22.patch","issue_url":"https://api.github.com/repos/exclusive-gix/cs2102-store/issues/22","number":22,"state":"open","locked":false,"title":"Add transaction application, finish migration script and admin page","user":{"login":"mikelimantara","id":6158263,"avatar_url":"https://avatars.githubusercontent.com/u/6158263?v=3","gravatar_id":"","url":"https://api.github.com/users/mikelimantara","html_url":"https://github.com/mikelimantara","followers_url":"https://api.github.com/users/mikelimantara/followers","following_url":"https://api.github.com/users/mikelimantara/following{/other_user}","gists_url":"https://api.github.com/users/mikelimantara/gists{/gist_id}","starred_url":"https://api.github.com/users/mikelimantara/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mikelimantara/subscriptions","organizations_url":"https://api.github.com/users/mikelimantara/orgs","repos_url":"https://api.github.com/users/mikelimantara/repos","events_url":"https://api.github.com/users/mikelimantara/events{/privacy}","received_events_url":"https://api.github.com/users/mikelimantara/received_events","type":"User","site_admin":false},"body":"Fixes #15","created_at":"2015-03-28T06:33:48Z","updated_at":"2015-03-28T07:27:13Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f9c5dfc86cf8bcbafd5a36ebc38e4cc5f401bfff","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/exclusive-gix/cs2102-store/pulls/22/commits","review_comments_url":"https://api.github.com/repos/exclusive-gix/cs2102-store/pulls/22/comments","review_comment_url":"https://api.github.com/repos/exclusive-gix/cs2102-store/pulls/comments{/number}","comments_url":"https://api.github.com/repos/exclusive-gix/cs2102-store/issues/22/comments","statuses_url":"https://api.github.com/repos/exclusive-gix/cs2102-store/statuses/ee0a8a4a1a89a95b77a47612223c72e46d123453","head":{"label":"exclusive-gix:feature/transaction","ref":"feature/transaction","sha":"ee0a8a4a1a89a95b77a47612223c72e46d123453","user":{"login":"exclusive-gix","id":10955854,"avatar_url":"https://avatars.githubusercontent.com/u/10955854?v=3","gravatar_id":"","url":"https://api.github.com/users/exclusive-gix","html_url":"https://github.com/exclusive-gix","followers_url":"https://api.github.com/users/exclusive-gix/followers","following_url":"https://api.github.com/users/exclusive-gix/following{/other_user}","gists_url":"https://api.github.com/users/exclusive-gix/gists{/gist_id}","starred_url":"https://api.github.com/users/exclusive-gix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/exclusive-gix/subscriptions","organizations_url":"https://api.github.com/users/exclusive-gix/orgs","repos_url":"https://api.github.com/users/exclusive-gix/repos","events_url":"https://api.github.com/users/exclusive-gix/events{/privacy}","received_events_url":"https://api.github.com/users/exclusive-gix/received_events","type":"Organization","site_admin":false},"repo":{"id":30644340,"name":"cs2102-store","full_name":"exclusive-gix/cs2102-store","owner":{"login":"exclusive-gix","id":10955854,"avatar_url":"https://avatars.githubusercontent.com/u/10955854?v=3","gravatar_id":"","url":"https://api.github.com/users/exclusive-gix","html_url":"https://github.com/exclusive-gix","followers_url":"https://api.github.com/users/exclusive-gix/followers","following_url":"https://api.github.com/users/exclusive-gix/following{/other_user}","gists_url":"https://api.github.com/users/exclusive-gix/gists{/gist_id}","starred_url":"https://api.github.com/users/exclusive-gix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/exclusive-gix/subscriptions","organizations_url":"https://api.github.com/users/exclusive-gix/orgs","repos_url":"https://api.github.com/users/exclusive-gix/repos","events_url":"https://api.github.com/users/exclusive-gix/events{/privacy}","received_events_url":"https://api.github.com/users/exclusive-gix/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/exclusive-gix/cs2102-store","description":"","fork":false,"url":"https://api.github.com/repos/exclusive-gix/cs2102-store","forks_url":"https://api.github.com/repos/exclusive-gix/cs2102-store/forks","keys_url":"https://api.github.com/repos/exclusive-gix/cs2102-store/keys{/key_id}","collaborators_url":"https://api.github.com/repos/exclusive-gix/cs2102-store/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/exclusive-gix/cs2102-store/teams","hooks_url":"https://api.github.com/repos/exclusive-gix/cs2102-store/hooks","issue_events_url":"https://api.github.com/repos/exclusive-gix/cs2102-store/issues/events{/number}","events_url":"https://api.github.com/repos/exclusive-gix/cs2102-store/events","assignees_url":"https://api.github.com/repos/exclusive-gix/cs2102-store/assignees{/user}","branches_url":"https://api.github.com/repos/exclusive-gix/cs2102-store/branches{/branch}","tags_url":"https://api.github.com/repos/exclusive-gix/cs2102-store/tags","blobs_url":"https://api.github.com/repos/exclusive-gix/cs2102-store/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/exclusive-gix/cs2102-store/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/exclusive-gix/cs2102-store/git/refs{/sha}","trees_url":"https://api.github.com/repos/exclusive-gix/cs2102-store/git/trees{/sha}","statuses_url":"https://api.github.com/repos/exclusive-gix/cs2102-store/statuses/{sha}","languages_url":"https://api.github.com/repos/exclusive-gix/cs2102-store/languages","stargazers_url":"https://api.github.com/repos/exclusive-gix/cs2102-store/stargazers","contributors_url":"https://api.github.com/repos/exclusive-gix/cs2102-store/contributors","subscribers_url":"https://api.github.com/repos/exclusive-gix/cs2102-store/subscribers","subscription_url":"https://api.github.com/repos/exclusive-gix/cs2102-store/subscription","commits_url":"https://api.github.com/repos/exclusive-gix/cs2102-store/commits{/sha}","git_commits_url":"https://api.github.com/repos/exclusive-gix/cs2102-store/git/commits{/sha}","comments_url":"https://api.github.com/repos/exclusive-gix/cs2102-store/comments{/number}","issue_comment_url":"https://api.github.com/repos/exclusive-gix/cs2102-store/issues/comments{/number}","contents_url":"https://api.github.com/repos/exclusive-gix/cs2102-store/contents/{+path}","compare_url":"https://api.github.com/repos/exclusive-gix/cs2102-store/compare/{base}...{head}","merges_url":"https://api.github.com/repos/exclusive-gix/cs2102-store/merges","archive_url":"https://api.github.com/repos/exclusive-gix/cs2102-store/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/exclusive-gix/cs2102-store/downloads","issues_url":"https://api.github.com/repos/exclusive-gix/cs2102-store/issues{/number}","pulls_url":"https://api.github.com/repos/exclusive-gix/cs2102-store/pulls{/number}","milestones_url":"https://api.github.com/repos/exclusive-gix/cs2102-store/milestones{/number}","notifications_url":"https://api.github.com/repos/exclusive-gix/cs2102-store/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/exclusive-gix/cs2102-store/labels{/name}","releases_url":"https://api.github.com/repos/exclusive-gix/cs2102-store/releases{/id}","created_at":"2015-02-11T11:18:01Z","updated_at":"2015-03-28T07:21:45Z","pushed_at":"2015-03-28T07:21:45Z","git_url":"git://github.com/exclusive-gix/cs2102-store.git","ssh_url":"git@github.com:exclusive-gix/cs2102-store.git","clone_url":"https://github.com/exclusive-gix/cs2102-store.git","svn_url":"https://github.com/exclusive-gix/cs2102-store","homepage":null,"size":868,"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":8,"forks":0,"open_issues":8,"watchers":0,"default_branch":"master"}},"base":{"label":"exclusive-gix:master","ref":"master","sha":"ffa4dd95c3733a00c24a1677eb86b26befded68a","user":{"login":"exclusive-gix","id":10955854,"avatar_url":"https://avatars.githubusercontent.com/u/10955854?v=3","gravatar_id":"","url":"https://api.github.com/users/exclusive-gix","html_url":"https://github.com/exclusive-gix","followers_url":"https://api.github.com/users/exclusive-gix/followers","following_url":"https://api.github.com/users/exclusive-gix/following{/other_user}","gists_url":"https://api.github.com/users/exclusive-gix/gists{/gist_id}","starred_url":"https://api.github.com/users/exclusive-gix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/exclusive-gix/subscriptions","organizations_url":"https://api.github.com/users/exclusive-gix/orgs","repos_url":"https://api.github.com/users/exclusive-gix/repos","events_url":"https://api.github.com/users/exclusive-gix/events{/privacy}","received_events_url":"https://api.github.com/users/exclusive-gix/received_events","type":"Organization","site_admin":false},"repo":{"id":30644340,"name":"cs2102-store","full_name":"exclusive-gix/cs2102-store","owner":{"login":"exclusive-gix","id":10955854,"avatar_url":"https://avatars.githubusercontent.com/u/10955854?v=3","gravatar_id":"","url":"https://api.github.com/users/exclusive-gix","html_url":"https://github.com/exclusive-gix","followers_url":"https://api.github.com/users/exclusive-gix/followers","following_url":"https://api.github.com/users/exclusive-gix/following{/other_user}","gists_url":"https://api.github.com/users/exclusive-gix/gists{/gist_id}","starred_url":"https://api.github.com/users/exclusive-gix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/exclusive-gix/subscriptions","organizations_url":"https://api.github.com/users/exclusive-gix/orgs","repos_url":"https://api.github.com/users/exclusive-gix/repos","events_url":"https://api.github.com/users/exclusive-gix/events{/privacy}","received_events_url":"https://api.github.com/users/exclusive-gix/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/exclusive-gix/cs2102-store","description":"","fork":false,"url":"https://api.github.com/repos/exclusive-gix/cs2102-store","forks_url":"https://api.github.com/repos/exclusive-gix/cs2102-store/forks","keys_url":"https://api.github.com/repos/exclusive-gix/cs2102-store/keys{/key_id}","collaborators_url":"https://api.github.com/repos/exclusive-gix/cs2102-store/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/exclusive-gix/cs2102-store/teams","hooks_url":"https://api.github.com/repos/exclusive-gix/cs2102-store/hooks","issue_events_url":"https://api.github.com/repos/exclusive-gix/cs2102-store/issues/events{/number}","events_url":"https://api.github.com/repos/exclusive-gix/cs2102-store/events","assignees_url":"https://api.github.com/repos/exclusive-gix/cs2102-store/assignees{/user}","branches_url":"https://api.github.com/repos/exclusive-gix/cs2102-store/branches{/branch}","tags_url":"https://api.github.com/repos/exclusive-gix/cs2102-store/tags","blobs_url":"https://api.github.com/repos/exclusive-gix/cs2102-store/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/exclusive-gix/cs2102-store/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/exclusive-gix/cs2102-store/git/refs{/sha}","trees_url":"https://api.github.com/repos/exclusive-gix/cs2102-store/git/trees{/sha}","statuses_url":"https://api.github.com/repos/exclusive-gix/cs2102-store/statuses/{sha}","languages_url":"https://api.github.com/repos/exclusive-gix/cs2102-store/languages","stargazers_url":"https://api.github.com/repos/exclusive-gix/cs2102-store/stargazers","contributors_url":"https://api.github.com/repos/exclusive-gix/cs2102-store/contributors","subscribers_url":"https://api.github.com/repos/exclusive-gix/cs2102-store/subscribers","subscription_url":"https://api.github.com/repos/exclusive-gix/cs2102-store/subscription","commits_url":"https://api.github.com/repos/exclusive-gix/cs2102-store/commits{/sha}","git_commits_url":"https://api.github.com/repos/exclusive-gix/cs2102-store/git/commits{/sha}","comments_url":"https://api.github.com/repos/exclusive-gix/cs2102-store/comments{/number}","issue_comment_url":"https://api.github.com/repos/exclusive-gix/cs2102-store/issues/comments{/number}","contents_url":"https://api.github.com/repos/exclusive-gix/cs2102-store/contents/{+path}","compare_url":"https://api.github.com/repos/exclusive-gix/cs2102-store/compare/{base}...{head}","merges_url":"https://api.github.com/repos/exclusive-gix/cs2102-store/merges","archive_url":"https://api.github.com/repos/exclusive-gix/cs2102-store/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/exclusive-gix/cs2102-store/downloads","issues_url":"https://api.github.com/repos/exclusive-gix/cs2102-store/issues{/number}","pulls_url":"https://api.github.com/repos/exclusive-gix/cs2102-store/pulls{/number}","milestones_url":"https://api.github.com/repos/exclusive-gix/cs2102-store/milestones{/number}","notifications_url":"https://api.github.com/repos/exclusive-gix/cs2102-store/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/exclusive-gix/cs2102-store/labels{/name}","releases_url":"https://api.github.com/repos/exclusive-gix/cs2102-store/releases{/id}","created_at":"2015-02-11T11:18:01Z","updated_at":"2015-03-28T07:21:45Z","pushed_at":"2015-03-28T07:21:45Z","git_url":"git://github.com/exclusive-gix/cs2102-store.git","ssh_url":"git@github.com:exclusive-gix/cs2102-store.git","clone_url":"https://github.com/exclusive-gix/cs2102-store.git","svn_url":"https://github.com/exclusive-gix/cs2102-store","homepage":null,"size":868,"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":8,"forks":0,"open_issues":8,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/exclusive-gix/cs2102-store/pulls/22"},"html":{"href":"https://github.com/exclusive-gix/cs2102-store/pull/22"},"issue":{"href":"https://api.github.com/repos/exclusive-gix/cs2102-store/issues/22"},"comments":{"href":"https://api.github.com/repos/exclusive-gix/cs2102-store/issues/22/comments"},"review_comments":{"href":"https://api.github.com/repos/exclusive-gix/cs2102-store/pulls/22/comments"},"review_comment":{"href":"https://api.github.com/repos/exclusive-gix/cs2102-store/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/exclusive-gix/cs2102-store/pulls/22/commits"},"statuses":{"href":"https://api.github.com/repos/exclusive-gix/cs2102-store/statuses/ee0a8a4a1a89a95b77a47612223c72e46d123453"}}}}