{"action":"created","comment":{"url":"https://api.github.com/repos/edx/django-oscar-extensions/pulls/comments/25202823","id":25202823,"diff_hunk":"@@ -0,0 +1,40 @@\n+# -*- coding: utf-8 -*-\n+from __future__ import unicode_literals\n+\n+from django.db import models, migrations\n+\n+\n+def create_catalog(apps, schema_editor):\n+    \"\"\"\n+\n+    Create all Product Catalog data for a sandbox, such as our Partner and Product Stock.\n+\n+    \"\"\"\n+    # Create all our Product Types.\n+    Partner = apps.get_model(\"partner\", \"Partner\")\n+    edx = Partner(code=\"edx\", name=\"edX\")\n+    edx.save()\n+\n+    StockRecord = apps.get_model(\"partner\", \"StockRecord\")\n+    Product = apps.get_model(\"catalogue\", \"Product\")\n+    honor_seat = Product.objects.get(upc=\"000000000002\")","path":"extensions/apps/partner/migrations/0003_auto_20150223_1130.py","position":20,"original_position":20,"commit_id":"7b978687d0a27e2261952dacbed583183cbfb3cd","original_commit_id":"7b978687d0a27e2261952dacbed583183cbfb3cd","user":{"login":"stephensanchez","id":235752,"avatar_url":"https://avatars.githubusercontent.com/u/235752?v=3","gravatar_id":"","url":"https://api.github.com/users/stephensanchez","html_url":"https://github.com/stephensanchez","followers_url":"https://api.github.com/users/stephensanchez/followers","following_url":"https://api.github.com/users/stephensanchez/following{/other_user}","gists_url":"https://api.github.com/users/stephensanchez/gists{/gist_id}","starred_url":"https://api.github.com/users/stephensanchez/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stephensanchez/subscriptions","organizations_url":"https://api.github.com/users/stephensanchez/orgs","repos_url":"https://api.github.com/users/stephensanchez/repos","events_url":"https://api.github.com/users/stephensanchez/events{/privacy}","received_events_url":"https://api.github.com/users/stephensanchez/received_events","type":"User","site_admin":false},"body":"We're using 000000000001 in the migration for the catalogue project, so this is the 'next' UPC","created_at":"2015-02-23T21:14:50Z","updated_at":"2015-02-23T21:14:50Z","html_url":"https://github.com/edx/django-oscar-extensions/pull/5#discussion_r25202823","pull_request_url":"https://api.github.com/repos/edx/django-oscar-extensions/pulls/5","_links":{"self":{"href":"https://api.github.com/repos/edx/django-oscar-extensions/pulls/comments/25202823"},"html":{"href":"https://github.com/edx/django-oscar-extensions/pull/5#discussion_r25202823"},"pull_request":{"href":"https://api.github.com/repos/edx/django-oscar-extensions/pulls/5"}}},"pull_request":{"url":"https://api.github.com/repos/edx/django-oscar-extensions/pulls/5","id":29829570,"html_url":"https://github.com/edx/django-oscar-extensions/pull/5","diff_url":"https://github.com/edx/django-oscar-extensions/pull/5.diff","patch_url":"https://github.com/edx/django-oscar-extensions/pull/5.patch","issue_url":"https://api.github.com/repos/edx/django-oscar-extensions/issues/5","number":5,"state":"open","locked":false,"title":"Add initial application overrides","user":{"login":"stephensanchez","id":235752,"avatar_url":"https://avatars.githubusercontent.com/u/235752?v=3","gravatar_id":"","url":"https://api.github.com/users/stephensanchez","html_url":"https://github.com/stephensanchez","followers_url":"https://api.github.com/users/stephensanchez/followers","following_url":"https://api.github.com/users/stephensanchez/following{/other_user}","gists_url":"https://api.github.com/users/stephensanchez/gists{/gist_id}","starred_url":"https://api.github.com/users/stephensanchez/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stephensanchez/subscriptions","organizations_url":"https://api.github.com/users/stephensanchez/orgs","repos_url":"https://api.github.com/users/stephensanchez/repos","events_url":"https://api.github.com/users/stephensanchez/events{/privacy}","received_events_url":"https://api.github.com/users/stephensanchez/received_events","type":"User","site_admin":false},"body":"Adding setup.py for project\r\n\r\nTry to add package name to projects.\r\n\r\nAdd package names to paths.\r\n\r\nCommit all transactions in data migrations","created_at":"2015-02-23T17:49:46Z","updated_at":"2015-02-23T21:14:50Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ecc5c12fe46f19d3b90da4e0037180e00758e27a","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/edx/django-oscar-extensions/pulls/5/commits","review_comments_url":"https://api.github.com/repos/edx/django-oscar-extensions/pulls/5/comments","review_comment_url":"https://api.github.com/repos/edx/django-oscar-extensions/pulls/comments{/number}","comments_url":"https://api.github.com/repos/edx/django-oscar-extensions/issues/5/comments","statuses_url":"https://api.github.com/repos/edx/django-oscar-extensions/statuses/7b978687d0a27e2261952dacbed583183cbfb3cd","head":{"label":"edx:sanchez/create_data_migrations","ref":"sanchez/create_data_migrations","sha":"7b978687d0a27e2261952dacbed583183cbfb3cd","user":{"login":"edx","id":3179841,"avatar_url":"https://avatars.githubusercontent.com/u/3179841?v=3","gravatar_id":"","url":"https://api.github.com/users/edx","html_url":"https://github.com/edx","followers_url":"https://api.github.com/users/edx/followers","following_url":"https://api.github.com/users/edx/following{/other_user}","gists_url":"https://api.github.com/users/edx/gists{/gist_id}","starred_url":"https://api.github.com/users/edx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/edx/subscriptions","organizations_url":"https://api.github.com/users/edx/orgs","repos_url":"https://api.github.com/users/edx/repos","events_url":"https://api.github.com/users/edx/events{/privacy}","received_events_url":"https://api.github.com/users/edx/received_events","type":"Organization","site_admin":false},"repo":{"id":30174961,"name":"django-oscar-extensions","full_name":"edx/django-oscar-extensions","owner":{"login":"edx","id":3179841,"avatar_url":"https://avatars.githubusercontent.com/u/3179841?v=3","gravatar_id":"","url":"https://api.github.com/users/edx","html_url":"https://github.com/edx","followers_url":"https://api.github.com/users/edx/followers","following_url":"https://api.github.com/users/edx/following{/other_user}","gists_url":"https://api.github.com/users/edx/gists{/gist_id}","starred_url":"https://api.github.com/users/edx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/edx/subscriptions","organizations_url":"https://api.github.com/users/edx/orgs","repos_url":"https://api.github.com/users/edx/repos","events_url":"https://api.github.com/users/edx/events{/privacy}","received_events_url":"https://api.github.com/users/edx/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/edx/django-oscar-extensions","description":"Repo for the edx's extensions to django oscar","fork":false,"url":"https://api.github.com/repos/edx/django-oscar-extensions","forks_url":"https://api.github.com/repos/edx/django-oscar-extensions/forks","keys_url":"https://api.github.com/repos/edx/django-oscar-extensions/keys{/key_id}","collaborators_url":"https://api.github.com/repos/edx/django-oscar-extensions/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/edx/django-oscar-extensions/teams","hooks_url":"https://api.github.com/repos/edx/django-oscar-extensions/hooks","issue_events_url":"https://api.github.com/repos/edx/django-oscar-extensions/issues/events{/number}","events_url":"https://api.github.com/repos/edx/django-oscar-extensions/events","assignees_url":"https://api.github.com/repos/edx/django-oscar-extensions/assignees{/user}","branches_url":"https://api.github.com/repos/edx/django-oscar-extensions/branches{/branch}","tags_url":"https://api.github.com/repos/edx/django-oscar-extensions/tags","blobs_url":"https://api.github.com/repos/edx/django-oscar-extensions/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/edx/django-oscar-extensions/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/edx/django-oscar-extensions/git/refs{/sha}","trees_url":"https://api.github.com/repos/edx/django-oscar-extensions/git/trees{/sha}","statuses_url":"https://api.github.com/repos/edx/django-oscar-extensions/statuses/{sha}","languages_url":"https://api.github.com/repos/edx/django-oscar-extensions/languages","stargazers_url":"https://api.github.com/repos/edx/django-oscar-extensions/stargazers","contributors_url":"https://api.github.com/repos/edx/django-oscar-extensions/contributors","subscribers_url":"https://api.github.com/repos/edx/django-oscar-extensions/subscribers","subscription_url":"https://api.github.com/repos/edx/django-oscar-extensions/subscription","commits_url":"https://api.github.com/repos/edx/django-oscar-extensions/commits{/sha}","git_commits_url":"https://api.github.com/repos/edx/django-oscar-extensions/git/commits{/sha}","comments_url":"https://api.github.com/repos/edx/django-oscar-extensions/comments{/number}","issue_comment_url":"https://api.github.com/repos/edx/django-oscar-extensions/issues/comments{/number}","contents_url":"https://api.github.com/repos/edx/django-oscar-extensions/contents/{+path}","compare_url":"https://api.github.com/repos/edx/django-oscar-extensions/compare/{base}...{head}","merges_url":"https://api.github.com/repos/edx/django-oscar-extensions/merges","archive_url":"https://api.github.com/repos/edx/django-oscar-extensions/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/edx/django-oscar-extensions/downloads","issues_url":"https://api.github.com/repos/edx/django-oscar-extensions/issues{/number}","pulls_url":"https://api.github.com/repos/edx/django-oscar-extensions/pulls{/number}","milestones_url":"https://api.github.com/repos/edx/django-oscar-extensions/milestones{/number}","notifications_url":"https://api.github.com/repos/edx/django-oscar-extensions/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/edx/django-oscar-extensions/labels{/name}","releases_url":"https://api.github.com/repos/edx/django-oscar-extensions/releases{/id}","created_at":"2015-02-02T06:52:47Z","updated_at":"2015-02-19T19:32:09Z","pushed_at":"2015-02-23T20:45:18Z","git_url":"git://github.com/edx/django-oscar-extensions.git","ssh_url":"git@github.com:edx/django-oscar-extensions.git","clone_url":"https://github.com/edx/django-oscar-extensions.git","svn_url":"https://github.com/edx/django-oscar-extensions","homepage":null,"size":236,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"edx:master","ref":"master","sha":"b42a532edaa5e4eb346bb26f49134f77dcbbeafe","user":{"login":"edx","id":3179841,"avatar_url":"https://avatars.githubusercontent.com/u/3179841?v=3","gravatar_id":"","url":"https://api.github.com/users/edx","html_url":"https://github.com/edx","followers_url":"https://api.github.com/users/edx/followers","following_url":"https://api.github.com/users/edx/following{/other_user}","gists_url":"https://api.github.com/users/edx/gists{/gist_id}","starred_url":"https://api.github.com/users/edx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/edx/subscriptions","organizations_url":"https://api.github.com/users/edx/orgs","repos_url":"https://api.github.com/users/edx/repos","events_url":"https://api.github.com/users/edx/events{/privacy}","received_events_url":"https://api.github.com/users/edx/received_events","type":"Organization","site_admin":false},"repo":{"id":30174961,"name":"django-oscar-extensions","full_name":"edx/django-oscar-extensions","owner":{"login":"edx","id":3179841,"avatar_url":"https://avatars.githubusercontent.com/u/3179841?v=3","gravatar_id":"","url":"https://api.github.com/users/edx","html_url":"https://github.com/edx","followers_url":"https://api.github.com/users/edx/followers","following_url":"https://api.github.com/users/edx/following{/other_user}","gists_url":"https://api.github.com/users/edx/gists{/gist_id}","starred_url":"https://api.github.com/users/edx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/edx/subscriptions","organizations_url":"https://api.github.com/users/edx/orgs","repos_url":"https://api.github.com/users/edx/repos","events_url":"https://api.github.com/users/edx/events{/privacy}","received_events_url":"https://api.github.com/users/edx/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/edx/django-oscar-extensions","description":"Repo for the edx's extensions to django oscar","fork":false,"url":"https://api.github.com/repos/edx/django-oscar-extensions","forks_url":"https://api.github.com/repos/edx/django-oscar-extensions/forks","keys_url":"https://api.github.com/repos/edx/django-oscar-extensions/keys{/key_id}","collaborators_url":"https://api.github.com/repos/edx/django-oscar-extensions/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/edx/django-oscar-extensions/teams","hooks_url":"https://api.github.com/repos/edx/django-oscar-extensions/hooks","issue_events_url":"https://api.github.com/repos/edx/django-oscar-extensions/issues/events{/number}","events_url":"https://api.github.com/repos/edx/django-oscar-extensions/events","assignees_url":"https://api.github.com/repos/edx/django-oscar-extensions/assignees{/user}","branches_url":"https://api.github.com/repos/edx/django-oscar-extensions/branches{/branch}","tags_url":"https://api.github.com/repos/edx/django-oscar-extensions/tags","blobs_url":"https://api.github.com/repos/edx/django-oscar-extensions/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/edx/django-oscar-extensions/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/edx/django-oscar-extensions/git/refs{/sha}","trees_url":"https://api.github.com/repos/edx/django-oscar-extensions/git/trees{/sha}","statuses_url":"https://api.github.com/repos/edx/django-oscar-extensions/statuses/{sha}","languages_url":"https://api.github.com/repos/edx/django-oscar-extensions/languages","stargazers_url":"https://api.github.com/repos/edx/django-oscar-extensions/stargazers","contributors_url":"https://api.github.com/repos/edx/django-oscar-extensions/contributors","subscribers_url":"https://api.github.com/repos/edx/django-oscar-extensions/subscribers","subscription_url":"https://api.github.com/repos/edx/django-oscar-extensions/subscription","commits_url":"https://api.github.com/repos/edx/django-oscar-extensions/commits{/sha}","git_commits_url":"https://api.github.com/repos/edx/django-oscar-extensions/git/commits{/sha}","comments_url":"https://api.github.com/repos/edx/django-oscar-extensions/comments{/number}","issue_comment_url":"https://api.github.com/repos/edx/django-oscar-extensions/issues/comments{/number}","contents_url":"https://api.github.com/repos/edx/django-oscar-extensions/contents/{+path}","compare_url":"https://api.github.com/repos/edx/django-oscar-extensions/compare/{base}...{head}","merges_url":"https://api.github.com/repos/edx/django-oscar-extensions/merges","archive_url":"https://api.github.com/repos/edx/django-oscar-extensions/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/edx/django-oscar-extensions/downloads","issues_url":"https://api.github.com/repos/edx/django-oscar-extensions/issues{/number}","pulls_url":"https://api.github.com/repos/edx/django-oscar-extensions/pulls{/number}","milestones_url":"https://api.github.com/repos/edx/django-oscar-extensions/milestones{/number}","notifications_url":"https://api.github.com/repos/edx/django-oscar-extensions/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/edx/django-oscar-extensions/labels{/name}","releases_url":"https://api.github.com/repos/edx/django-oscar-extensions/releases{/id}","created_at":"2015-02-02T06:52:47Z","updated_at":"2015-02-19T19:32:09Z","pushed_at":"2015-02-23T20:45:18Z","git_url":"git://github.com/edx/django-oscar-extensions.git","ssh_url":"git@github.com:edx/django-oscar-extensions.git","clone_url":"https://github.com/edx/django-oscar-extensions.git","svn_url":"https://github.com/edx/django-oscar-extensions","homepage":null,"size":236,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/edx/django-oscar-extensions/pulls/5"},"html":{"href":"https://github.com/edx/django-oscar-extensions/pull/5"},"issue":{"href":"https://api.github.com/repos/edx/django-oscar-extensions/issues/5"},"comments":{"href":"https://api.github.com/repos/edx/django-oscar-extensions/issues/5/comments"},"review_comments":{"href":"https://api.github.com/repos/edx/django-oscar-extensions/pulls/5/comments"},"review_comment":{"href":"https://api.github.com/repos/edx/django-oscar-extensions/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/edx/django-oscar-extensions/pulls/5/commits"},"statuses":{"href":"https://api.github.com/repos/edx/django-oscar-extensions/statuses/7b978687d0a27e2261952dacbed583183cbfb3cd"}}}}