{"action":"opened","number":1809,"pull_request":{"url":"https://api.github.com/repos/django-oscar/django-oscar/pulls/1809","id":40048760,"html_url":"https://github.com/django-oscar/django-oscar/pull/1809","diff_url":"https://github.com/django-oscar/django-oscar/pull/1809.diff","patch_url":"https://github.com/django-oscar/django-oscar/pull/1809.patch","issue_url":"https://api.github.com/repos/django-oscar/django-oscar/issues/1809","number":1809,"state":"open","locked":false,"title":"Move Basket.vouchers to Voucher.baskets with migration.","user":{"login":"john-parton","id":2071543,"avatar_url":"https://avatars.githubusercontent.com/u/2071543?v=3","gravatar_id":"","url":"https://api.github.com/users/john-parton","html_url":"https://github.com/john-parton","followers_url":"https://api.github.com/users/john-parton/followers","following_url":"https://api.github.com/users/john-parton/following{/other_user}","gists_url":"https://api.github.com/users/john-parton/gists{/gist_id}","starred_url":"https://api.github.com/users/john-parton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/john-parton/subscriptions","organizations_url":"https://api.github.com/users/john-parton/orgs","repos_url":"https://api.github.com/users/john-parton/repos","events_url":"https://api.github.com/users/john-parton/events{/privacy}","received_events_url":"https://api.github.com/users/john-parton/received_events","type":"User","site_admin":false},"body":"Should close https://github.com/django-oscar/django-oscar/issues/1808\r\n\r\nThis moves the `vouchers` `ManyToManyField` definition to the `Voucher` model as a `baskets` `ManyToManyField` with a `baskets` `related_name` for backwards compatibility.\r\n\r\nI've included a migration that will remove the old field and add the new field without removing the data. \r\n\r\nI'm not 100% sure how migrations interact with app forking. Probably something that needs to be addressed before this is accepted.","created_at":"2015-07-15T17:37:56Z","updated_at":"2015-07-15T17:37:56Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/django-oscar/django-oscar/pulls/1809/commits","review_comments_url":"https://api.github.com/repos/django-oscar/django-oscar/pulls/1809/comments","review_comment_url":"https://api.github.com/repos/django-oscar/django-oscar/pulls/comments{/number}","comments_url":"https://api.github.com/repos/django-oscar/django-oscar/issues/1809/comments","statuses_url":"https://api.github.com/repos/django-oscar/django-oscar/statuses/100e37ec0c5052e545befad579b3b394ed1753dc","head":{"label":"john-parton:issue/1808_circular_dependency","ref":"issue/1808_circular_dependency","sha":"100e37ec0c5052e545befad579b3b394ed1753dc","user":{"login":"john-parton","id":2071543,"avatar_url":"https://avatars.githubusercontent.com/u/2071543?v=3","gravatar_id":"","url":"https://api.github.com/users/john-parton","html_url":"https://github.com/john-parton","followers_url":"https://api.github.com/users/john-parton/followers","following_url":"https://api.github.com/users/john-parton/following{/other_user}","gists_url":"https://api.github.com/users/john-parton/gists{/gist_id}","starred_url":"https://api.github.com/users/john-parton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/john-parton/subscriptions","organizations_url":"https://api.github.com/users/john-parton/orgs","repos_url":"https://api.github.com/users/john-parton/repos","events_url":"https://api.github.com/users/john-parton/events{/privacy}","received_events_url":"https://api.github.com/users/john-parton/received_events","type":"User","site_admin":false},"repo":{"id":28143381,"name":"django-oscar","full_name":"john-parton/django-oscar","owner":{"login":"john-parton","id":2071543,"avatar_url":"https://avatars.githubusercontent.com/u/2071543?v=3","gravatar_id":"","url":"https://api.github.com/users/john-parton","html_url":"https://github.com/john-parton","followers_url":"https://api.github.com/users/john-parton/followers","following_url":"https://api.github.com/users/john-parton/following{/other_user}","gists_url":"https://api.github.com/users/john-parton/gists{/gist_id}","starred_url":"https://api.github.com/users/john-parton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/john-parton/subscriptions","organizations_url":"https://api.github.com/users/john-parton/orgs","repos_url":"https://api.github.com/users/john-parton/repos","events_url":"https://api.github.com/users/john-parton/events{/privacy}","received_events_url":"https://api.github.com/users/john-parton/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/john-parton/django-oscar","description":"Domain-driven e-commerce for Django","fork":true,"url":"https://api.github.com/repos/john-parton/django-oscar","forks_url":"https://api.github.com/repos/john-parton/django-oscar/forks","keys_url":"https://api.github.com/repos/john-parton/django-oscar/keys{/key_id}","collaborators_url":"https://api.github.com/repos/john-parton/django-oscar/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/john-parton/django-oscar/teams","hooks_url":"https://api.github.com/repos/john-parton/django-oscar/hooks","issue_events_url":"https://api.github.com/repos/john-parton/django-oscar/issues/events{/number}","events_url":"https://api.github.com/repos/john-parton/django-oscar/events","assignees_url":"https://api.github.com/repos/john-parton/django-oscar/assignees{/user}","branches_url":"https://api.github.com/repos/john-parton/django-oscar/branches{/branch}","tags_url":"https://api.github.com/repos/john-parton/django-oscar/tags","blobs_url":"https://api.github.com/repos/john-parton/django-oscar/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/john-parton/django-oscar/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/john-parton/django-oscar/git/refs{/sha}","trees_url":"https://api.github.com/repos/john-parton/django-oscar/git/trees{/sha}","statuses_url":"https://api.github.com/repos/john-parton/django-oscar/statuses/{sha}","languages_url":"https://api.github.com/repos/john-parton/django-oscar/languages","stargazers_url":"https://api.github.com/repos/john-parton/django-oscar/stargazers","contributors_url":"https://api.github.com/repos/john-parton/django-oscar/contributors","subscribers_url":"https://api.github.com/repos/john-parton/django-oscar/subscribers","subscription_url":"https://api.github.com/repos/john-parton/django-oscar/subscription","commits_url":"https://api.github.com/repos/john-parton/django-oscar/commits{/sha}","git_commits_url":"https://api.github.com/repos/john-parton/django-oscar/git/commits{/sha}","comments_url":"https://api.github.com/repos/john-parton/django-oscar/comments{/number}","issue_comment_url":"https://api.github.com/repos/john-parton/django-oscar/issues/comments{/number}","contents_url":"https://api.github.com/repos/john-parton/django-oscar/contents/{+path}","compare_url":"https://api.github.com/repos/john-parton/django-oscar/compare/{base}...{head}","merges_url":"https://api.github.com/repos/john-parton/django-oscar/merges","archive_url":"https://api.github.com/repos/john-parton/django-oscar/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/john-parton/django-oscar/downloads","issues_url":"https://api.github.com/repos/john-parton/django-oscar/issues{/number}","pulls_url":"https://api.github.com/repos/john-parton/django-oscar/pulls{/number}","milestones_url":"https://api.github.com/repos/john-parton/django-oscar/milestones{/number}","notifications_url":"https://api.github.com/repos/john-parton/django-oscar/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/john-parton/django-oscar/labels{/name}","releases_url":"https://api.github.com/repos/john-parton/django-oscar/releases{/id}","created_at":"2014-12-17T15:39:41Z","updated_at":"2015-05-05T13:39:00Z","pushed_at":"2015-07-15T17:33:00Z","git_url":"git://github.com/john-parton/django-oscar.git","ssh_url":"git@github.com:john-parton/django-oscar.git","clone_url":"https://github.com/john-parton/django-oscar.git","svn_url":"https://github.com/john-parton/django-oscar","homepage":"http://oscarcommerce.com","size":79201,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":1,"mirror_url":null,"open_issues_count":0,"forks":1,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"django-oscar:master","ref":"master","sha":"35b09fc05d799181be9046c7447986cc5193d2ff","user":{"login":"django-oscar","id":9057806,"avatar_url":"https://avatars.githubusercontent.com/u/9057806?v=3","gravatar_id":"","url":"https://api.github.com/users/django-oscar","html_url":"https://github.com/django-oscar","followers_url":"https://api.github.com/users/django-oscar/followers","following_url":"https://api.github.com/users/django-oscar/following{/other_user}","gists_url":"https://api.github.com/users/django-oscar/gists{/gist_id}","starred_url":"https://api.github.com/users/django-oscar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/django-oscar/subscriptions","organizations_url":"https://api.github.com/users/django-oscar/orgs","repos_url":"https://api.github.com/users/django-oscar/repos","events_url":"https://api.github.com/users/django-oscar/events{/privacy}","received_events_url":"https://api.github.com/users/django-oscar/received_events","type":"Organization","site_admin":false},"repo":{"id":1151051,"name":"django-oscar","full_name":"django-oscar/django-oscar","owner":{"login":"django-oscar","id":9057806,"avatar_url":"https://avatars.githubusercontent.com/u/9057806?v=3","gravatar_id":"","url":"https://api.github.com/users/django-oscar","html_url":"https://github.com/django-oscar","followers_url":"https://api.github.com/users/django-oscar/followers","following_url":"https://api.github.com/users/django-oscar/following{/other_user}","gists_url":"https://api.github.com/users/django-oscar/gists{/gist_id}","starred_url":"https://api.github.com/users/django-oscar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/django-oscar/subscriptions","organizations_url":"https://api.github.com/users/django-oscar/orgs","repos_url":"https://api.github.com/users/django-oscar/repos","events_url":"https://api.github.com/users/django-oscar/events{/privacy}","received_events_url":"https://api.github.com/users/django-oscar/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/django-oscar/django-oscar","description":"Domain-driven e-commerce for Django","fork":false,"url":"https://api.github.com/repos/django-oscar/django-oscar","forks_url":"https://api.github.com/repos/django-oscar/django-oscar/forks","keys_url":"https://api.github.com/repos/django-oscar/django-oscar/keys{/key_id}","collaborators_url":"https://api.github.com/repos/django-oscar/django-oscar/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/django-oscar/django-oscar/teams","hooks_url":"https://api.github.com/repos/django-oscar/django-oscar/hooks","issue_events_url":"https://api.github.com/repos/django-oscar/django-oscar/issues/events{/number}","events_url":"https://api.github.com/repos/django-oscar/django-oscar/events","assignees_url":"https://api.github.com/repos/django-oscar/django-oscar/assignees{/user}","branches_url":"https://api.github.com/repos/django-oscar/django-oscar/branches{/branch}","tags_url":"https://api.github.com/repos/django-oscar/django-oscar/tags","blobs_url":"https://api.github.com/repos/django-oscar/django-oscar/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/django-oscar/django-oscar/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/django-oscar/django-oscar/git/refs{/sha}","trees_url":"https://api.github.com/repos/django-oscar/django-oscar/git/trees{/sha}","statuses_url":"https://api.github.com/repos/django-oscar/django-oscar/statuses/{sha}","languages_url":"https://api.github.com/repos/django-oscar/django-oscar/languages","stargazers_url":"https://api.github.com/repos/django-oscar/django-oscar/stargazers","contributors_url":"https://api.github.com/repos/django-oscar/django-oscar/contributors","subscribers_url":"https://api.github.com/repos/django-oscar/django-oscar/subscribers","subscription_url":"https://api.github.com/repos/django-oscar/django-oscar/subscription","commits_url":"https://api.github.com/repos/django-oscar/django-oscar/commits{/sha}","git_commits_url":"https://api.github.com/repos/django-oscar/django-oscar/git/commits{/sha}","comments_url":"https://api.github.com/repos/django-oscar/django-oscar/comments{/number}","issue_comment_url":"https://api.github.com/repos/django-oscar/django-oscar/issues/comments{/number}","contents_url":"https://api.github.com/repos/django-oscar/django-oscar/contents/{+path}","compare_url":"https://api.github.com/repos/django-oscar/django-oscar/compare/{base}...{head}","merges_url":"https://api.github.com/repos/django-oscar/django-oscar/merges","archive_url":"https://api.github.com/repos/django-oscar/django-oscar/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/django-oscar/django-oscar/downloads","issues_url":"https://api.github.com/repos/django-oscar/django-oscar/issues{/number}","pulls_url":"https://api.github.com/repos/django-oscar/django-oscar/pulls{/number}","milestones_url":"https://api.github.com/repos/django-oscar/django-oscar/milestones{/number}","notifications_url":"https://api.github.com/repos/django-oscar/django-oscar/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/django-oscar/django-oscar/labels{/name}","releases_url":"https://api.github.com/repos/django-oscar/django-oscar/releases{/id}","created_at":"2010-12-08T21:30:32Z","updated_at":"2015-07-15T08:23:37Z","pushed_at":"2015-07-14T17:34:01Z","git_url":"git://github.com/django-oscar/django-oscar.git","ssh_url":"git@github.com:django-oscar/django-oscar.git","clone_url":"https://github.com/django-oscar/django-oscar.git","svn_url":"https://github.com/django-oscar/django-oscar","homepage":"http://oscarcommerce.com","size":120155,"stargazers_count":1552,"watchers_count":1552,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":642,"mirror_url":null,"open_issues_count":199,"forks":642,"open_issues":199,"watchers":1552,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/django-oscar/django-oscar/pulls/1809"},"html":{"href":"https://github.com/django-oscar/django-oscar/pull/1809"},"issue":{"href":"https://api.github.com/repos/django-oscar/django-oscar/issues/1809"},"comments":{"href":"https://api.github.com/repos/django-oscar/django-oscar/issues/1809/comments"},"review_comments":{"href":"https://api.github.com/repos/django-oscar/django-oscar/pulls/1809/comments"},"review_comment":{"href":"https://api.github.com/repos/django-oscar/django-oscar/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/django-oscar/django-oscar/pulls/1809/commits"},"statuses":{"href":"https://api.github.com/repos/django-oscar/django-oscar/statuses/100e37ec0c5052e545befad579b3b394ed1753dc"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":62,"deletions":6,"changed_files":4}}