{"action":"created","comment":{"url":"https://api.github.com/repos/mirumee/saleor/pulls/comments/91960052","pull_request_review_id":12468201,"id":91960052,"diff_hunk":"@@ -51,14 +50,8 @@ def index(request, cart):\n @decorators.get_or_create_db_cart()\n def add_to_cart(request, cart, product_id):\n     product = get_object_or_404(Product, pk=product_id)\n-    form_class = get_form_class_for_product(product)\n-\n-    form = form_class(\n-        data=request.POST or None, product=product, cart=cart,\n-        discounts=request.discounts)\n-    if form.is_valid():\n-        form.save()\n-    else:\n+    form = process_purchase(request, cart, product)","path":"saleor/cart/views.py","position":25,"original_position":25,"commit_id":"00f5a6e19d5238ab7986b3941842cc2014c5ecc7","original_commit_id":"00f5a6e19d5238ab7986b3941842cc2014c5ecc7","user":{"login":"patrys","id":81205,"avatar_url":"https://avatars.githubusercontent.com/u/81205?v=3","gravatar_id":"","url":"https://api.github.com/users/patrys","html_url":"https://github.com/patrys","followers_url":"https://api.github.com/users/patrys/followers","following_url":"https://api.github.com/users/patrys/following{/other_user}","gists_url":"https://api.github.com/users/patrys/gists{/gist_id}","starred_url":"https://api.github.com/users/patrys/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/patrys/subscriptions","organizations_url":"https://api.github.com/users/patrys/orgs","repos_url":"https://api.github.com/users/patrys/repos","events_url":"https://api.github.com/users/patrys/events{/privacy}","received_events_url":"https://api.github.com/users/patrys/received_events","type":"User","site_admin":false},"body":"When is this view used? What are the user expectations? It seems to have the same problems as the previous version.","created_at":"2016-12-12T14:48:15Z","updated_at":"2016-12-12T14:48:22Z","html_url":"https://github.com/mirumee/saleor/pull/651#discussion_r91960052","pull_request_url":"https://api.github.com/repos/mirumee/saleor/pulls/651","_links":{"self":{"href":"https://api.github.com/repos/mirumee/saleor/pulls/comments/91960052"},"html":{"href":"https://github.com/mirumee/saleor/pull/651#discussion_r91960052"},"pull_request":{"href":"https://api.github.com/repos/mirumee/saleor/pulls/651"}}},"pull_request":{"url":"https://api.github.com/repos/mirumee/saleor/pulls/651","id":97548434,"html_url":"https://github.com/mirumee/saleor/pull/651","diff_url":"https://github.com/mirumee/saleor/pull/651.diff","patch_url":"https://github.com/mirumee/saleor/pull/651.patch","issue_url":"https://api.github.com/repos/mirumee/saleor/issues/651","number":651,"state":"open","locked":false,"title":"Cart improvement","user":{"login":"szewczykmira","id":6984271,"avatar_url":"https://avatars.githubusercontent.com/u/6984271?v=3","gravatar_id":"","url":"https://api.github.com/users/szewczykmira","html_url":"https://github.com/szewczykmira","followers_url":"https://api.github.com/users/szewczykmira/followers","following_url":"https://api.github.com/users/szewczykmira/following{/other_user}","gists_url":"https://api.github.com/users/szewczykmira/gists{/gist_id}","starred_url":"https://api.github.com/users/szewczykmira/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/szewczykmira/subscriptions","organizations_url":"https://api.github.com/users/szewczykmira/orgs","repos_url":"https://api.github.com/users/szewczykmira/repos","events_url":"https://api.github.com/users/szewczykmira/events{/privacy}","received_events_url":"https://api.github.com/users/szewczykmira/received_events","type":"User","site_admin":false},"body":"Issue #648 ","created_at":"2016-12-12T12:59:18Z","updated_at":"2016-12-12T14:48:22Z","closed_at":null,"merged_at":null,"merge_commit_sha":"39268f3e1d20609038a39da8ac021510b66a5f8d","assignee":{"login":"patrys","id":81205,"avatar_url":"https://avatars.githubusercontent.com/u/81205?v=3","gravatar_id":"","url":"https://api.github.com/users/patrys","html_url":"https://github.com/patrys","followers_url":"https://api.github.com/users/patrys/followers","following_url":"https://api.github.com/users/patrys/following{/other_user}","gists_url":"https://api.github.com/users/patrys/gists{/gist_id}","starred_url":"https://api.github.com/users/patrys/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/patrys/subscriptions","organizations_url":"https://api.github.com/users/patrys/orgs","repos_url":"https://api.github.com/users/patrys/repos","events_url":"https://api.github.com/users/patrys/events{/privacy}","received_events_url":"https://api.github.com/users/patrys/received_events","type":"User","site_admin":false},"assignees":[{"login":"patrys","id":81205,"avatar_url":"https://avatars.githubusercontent.com/u/81205?v=3","gravatar_id":"","url":"https://api.github.com/users/patrys","html_url":"https://github.com/patrys","followers_url":"https://api.github.com/users/patrys/followers","following_url":"https://api.github.com/users/patrys/following{/other_user}","gists_url":"https://api.github.com/users/patrys/gists{/gist_id}","starred_url":"https://api.github.com/users/patrys/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/patrys/subscriptions","organizations_url":"https://api.github.com/users/patrys/orgs","repos_url":"https://api.github.com/users/patrys/repos","events_url":"https://api.github.com/users/patrys/events{/privacy}","received_events_url":"https://api.github.com/users/patrys/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/mirumee/saleor/pulls/651/commits","review_comments_url":"https://api.github.com/repos/mirumee/saleor/pulls/651/comments","review_comment_url":"https://api.github.com/repos/mirumee/saleor/pulls/comments{/number}","comments_url":"https://api.github.com/repos/mirumee/saleor/issues/651/comments","statuses_url":"https://api.github.com/repos/mirumee/saleor/statuses/00f5a6e19d5238ab7986b3941842cc2014c5ecc7","head":{"label":"szewczykmira:cartimprovement","ref":"cartimprovement","sha":"00f5a6e19d5238ab7986b3941842cc2014c5ecc7","user":{"login":"szewczykmira","id":6984271,"avatar_url":"https://avatars.githubusercontent.com/u/6984271?v=3","gravatar_id":"","url":"https://api.github.com/users/szewczykmira","html_url":"https://github.com/szewczykmira","followers_url":"https://api.github.com/users/szewczykmira/followers","following_url":"https://api.github.com/users/szewczykmira/following{/other_user}","gists_url":"https://api.github.com/users/szewczykmira/gists{/gist_id}","starred_url":"https://api.github.com/users/szewczykmira/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/szewczykmira/subscriptions","organizations_url":"https://api.github.com/users/szewczykmira/orgs","repos_url":"https://api.github.com/users/szewczykmira/repos","events_url":"https://api.github.com/users/szewczykmira/events{/privacy}","received_events_url":"https://api.github.com/users/szewczykmira/received_events","type":"User","site_admin":false},"repo":{"id":75630280,"name":"saleor","full_name":"szewczykmira/saleor","owner":{"login":"szewczykmira","id":6984271,"avatar_url":"https://avatars.githubusercontent.com/u/6984271?v=3","gravatar_id":"","url":"https://api.github.com/users/szewczykmira","html_url":"https://github.com/szewczykmira","followers_url":"https://api.github.com/users/szewczykmira/followers","following_url":"https://api.github.com/users/szewczykmira/following{/other_user}","gists_url":"https://api.github.com/users/szewczykmira/gists{/gist_id}","starred_url":"https://api.github.com/users/szewczykmira/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/szewczykmira/subscriptions","organizations_url":"https://api.github.com/users/szewczykmira/orgs","repos_url":"https://api.github.com/users/szewczykmira/repos","events_url":"https://api.github.com/users/szewczykmira/events{/privacy}","received_events_url":"https://api.github.com/users/szewczykmira/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/szewczykmira/saleor","description":"An e-commerce storefront for Python and Django","fork":true,"url":"https://api.github.com/repos/szewczykmira/saleor","forks_url":"https://api.github.com/repos/szewczykmira/saleor/forks","keys_url":"https://api.github.com/repos/szewczykmira/saleor/keys{/key_id}","collaborators_url":"https://api.github.com/repos/szewczykmira/saleor/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/szewczykmira/saleor/teams","hooks_url":"https://api.github.com/repos/szewczykmira/saleor/hooks","issue_events_url":"https://api.github.com/repos/szewczykmira/saleor/issues/events{/number}","events_url":"https://api.github.com/repos/szewczykmira/saleor/events","assignees_url":"https://api.github.com/repos/szewczykmira/saleor/assignees{/user}","branches_url":"https://api.github.com/repos/szewczykmira/saleor/branches{/branch}","tags_url":"https://api.github.com/repos/szewczykmira/saleor/tags","blobs_url":"https://api.github.com/repos/szewczykmira/saleor/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/szewczykmira/saleor/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/szewczykmira/saleor/git/refs{/sha}","trees_url":"https://api.github.com/repos/szewczykmira/saleor/git/trees{/sha}","statuses_url":"https://api.github.com/repos/szewczykmira/saleor/statuses/{sha}","languages_url":"https://api.github.com/repos/szewczykmira/saleor/languages","stargazers_url":"https://api.github.com/repos/szewczykmira/saleor/stargazers","contributors_url":"https://api.github.com/repos/szewczykmira/saleor/contributors","subscribers_url":"https://api.github.com/repos/szewczykmira/saleor/subscribers","subscription_url":"https://api.github.com/repos/szewczykmira/saleor/subscription","commits_url":"https://api.github.com/repos/szewczykmira/saleor/commits{/sha}","git_commits_url":"https://api.github.com/repos/szewczykmira/saleor/git/commits{/sha}","comments_url":"https://api.github.com/repos/szewczykmira/saleor/comments{/number}","issue_comment_url":"https://api.github.com/repos/szewczykmira/saleor/issues/comments{/number}","contents_url":"https://api.github.com/repos/szewczykmira/saleor/contents/{+path}","compare_url":"https://api.github.com/repos/szewczykmira/saleor/compare/{base}...{head}","merges_url":"https://api.github.com/repos/szewczykmira/saleor/merges","archive_url":"https://api.github.com/repos/szewczykmira/saleor/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/szewczykmira/saleor/downloads","issues_url":"https://api.github.com/repos/szewczykmira/saleor/issues{/number}","pulls_url":"https://api.github.com/repos/szewczykmira/saleor/pulls{/number}","milestones_url":"https://api.github.com/repos/szewczykmira/saleor/milestones{/number}","notifications_url":"https://api.github.com/repos/szewczykmira/saleor/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/szewczykmira/saleor/labels{/name}","releases_url":"https://api.github.com/repos/szewczykmira/saleor/releases{/id}","deployments_url":"https://api.github.com/repos/szewczykmira/saleor/deployments","created_at":"2016-12-05T14:03:25Z","updated_at":"2016-12-05T14:03:27Z","pushed_at":"2016-12-12T14:01:52Z","git_url":"git://github.com/szewczykmira/saleor.git","ssh_url":"git@github.com:szewczykmira/saleor.git","clone_url":"https://github.com/szewczykmira/saleor.git","svn_url":"https://github.com/szewczykmira/saleor","homepage":"http://getsaleor.com","size":9932,"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":"mirumee:master","ref":"master","sha":"f1bce18d9deb9da35ca7012b01562d2e9c5102c6","user":{"login":"mirumee","id":170574,"avatar_url":"https://avatars.githubusercontent.com/u/170574?v=3","gravatar_id":"","url":"https://api.github.com/users/mirumee","html_url":"https://github.com/mirumee","followers_url":"https://api.github.com/users/mirumee/followers","following_url":"https://api.github.com/users/mirumee/following{/other_user}","gists_url":"https://api.github.com/users/mirumee/gists{/gist_id}","starred_url":"https://api.github.com/users/mirumee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mirumee/subscriptions","organizations_url":"https://api.github.com/users/mirumee/orgs","repos_url":"https://api.github.com/users/mirumee/repos","events_url":"https://api.github.com/users/mirumee/events{/privacy}","received_events_url":"https://api.github.com/users/mirumee/received_events","type":"Organization","site_admin":false},"repo":{"id":8162715,"name":"saleor","full_name":"mirumee/saleor","owner":{"login":"mirumee","id":170574,"avatar_url":"https://avatars.githubusercontent.com/u/170574?v=3","gravatar_id":"","url":"https://api.github.com/users/mirumee","html_url":"https://github.com/mirumee","followers_url":"https://api.github.com/users/mirumee/followers","following_url":"https://api.github.com/users/mirumee/following{/other_user}","gists_url":"https://api.github.com/users/mirumee/gists{/gist_id}","starred_url":"https://api.github.com/users/mirumee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mirumee/subscriptions","organizations_url":"https://api.github.com/users/mirumee/orgs","repos_url":"https://api.github.com/users/mirumee/repos","events_url":"https://api.github.com/users/mirumee/events{/privacy}","received_events_url":"https://api.github.com/users/mirumee/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/mirumee/saleor","description":"An e-commerce storefront for Python and Django","fork":false,"url":"https://api.github.com/repos/mirumee/saleor","forks_url":"https://api.github.com/repos/mirumee/saleor/forks","keys_url":"https://api.github.com/repos/mirumee/saleor/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mirumee/saleor/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mirumee/saleor/teams","hooks_url":"https://api.github.com/repos/mirumee/saleor/hooks","issue_events_url":"https://api.github.com/repos/mirumee/saleor/issues/events{/number}","events_url":"https://api.github.com/repos/mirumee/saleor/events","assignees_url":"https://api.github.com/repos/mirumee/saleor/assignees{/user}","branches_url":"https://api.github.com/repos/mirumee/saleor/branches{/branch}","tags_url":"https://api.github.com/repos/mirumee/saleor/tags","blobs_url":"https://api.github.com/repos/mirumee/saleor/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mirumee/saleor/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mirumee/saleor/git/refs{/sha}","trees_url":"https://api.github.com/repos/mirumee/saleor/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mirumee/saleor/statuses/{sha}","languages_url":"https://api.github.com/repos/mirumee/saleor/languages","stargazers_url":"https://api.github.com/repos/mirumee/saleor/stargazers","contributors_url":"https://api.github.com/repos/mirumee/saleor/contributors","subscribers_url":"https://api.github.com/repos/mirumee/saleor/subscribers","subscription_url":"https://api.github.com/repos/mirumee/saleor/subscription","commits_url":"https://api.github.com/repos/mirumee/saleor/commits{/sha}","git_commits_url":"https://api.github.com/repos/mirumee/saleor/git/commits{/sha}","comments_url":"https://api.github.com/repos/mirumee/saleor/comments{/number}","issue_comment_url":"https://api.github.com/repos/mirumee/saleor/issues/comments{/number}","contents_url":"https://api.github.com/repos/mirumee/saleor/contents/{+path}","compare_url":"https://api.github.com/repos/mirumee/saleor/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mirumee/saleor/merges","archive_url":"https://api.github.com/repos/mirumee/saleor/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mirumee/saleor/downloads","issues_url":"https://api.github.com/repos/mirumee/saleor/issues{/number}","pulls_url":"https://api.github.com/repos/mirumee/saleor/pulls{/number}","milestones_url":"https://api.github.com/repos/mirumee/saleor/milestones{/number}","notifications_url":"https://api.github.com/repos/mirumee/saleor/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mirumee/saleor/labels{/name}","releases_url":"https://api.github.com/repos/mirumee/saleor/releases{/id}","deployments_url":"https://api.github.com/repos/mirumee/saleor/deployments","created_at":"2013-02-12T16:46:39Z","updated_at":"2016-12-12T08:20:10Z","pushed_at":"2016-12-12T14:44:06Z","git_url":"git://github.com/mirumee/saleor.git","ssh_url":"git@github.com:mirumee/saleor.git","clone_url":"https://github.com/mirumee/saleor.git","svn_url":"https://github.com/mirumee/saleor","homepage":"http://getsaleor.com","size":16467,"stargazers_count":647,"watchers_count":647,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":263,"mirror_url":null,"open_issues_count":81,"forks":263,"open_issues":81,"watchers":647,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/mirumee/saleor/pulls/651"},"html":{"href":"https://github.com/mirumee/saleor/pull/651"},"issue":{"href":"https://api.github.com/repos/mirumee/saleor/issues/651"},"comments":{"href":"https://api.github.com/repos/mirumee/saleor/issues/651/comments"},"review_comments":{"href":"https://api.github.com/repos/mirumee/saleor/pulls/651/comments"},"review_comment":{"href":"https://api.github.com/repos/mirumee/saleor/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/mirumee/saleor/pulls/651/commits"},"statuses":{"href":"https://api.github.com/repos/mirumee/saleor/statuses/00f5a6e19d5238ab7986b3941842cc2014c5ecc7"}}}}
{"actor":{"display_login":"patrys"}}