{"action":"created","comment":{"url":"https://api.github.com/repos/edx/course-discovery/pulls/comments/69154152","id":69154152,"diff_hunk":"@@ -20,3 +20,10 @@ def clean_query(query):\n         query = query.replace(old, new)\n \n     return query\n+\n+\n+def _choices(*values):\n+    \"\"\"\n+    Helper for use with model field 'choices'.\n+    \"\"\"\n+    return [(value, ) * 2 for value in values]","path":"course_discovery/apps/course_metadata/utils.py","position":10,"original_position":10,"commit_id":"7aed79803842695644080a2db90d8b92562fb766","original_commit_id":"7aed79803842695644080a2db90d8b92562fb766","user":{"login":"bderusha","id":444835,"avatar_url":"https://avatars.githubusercontent.com/u/444835?v=3","gravatar_id":"","url":"https://api.github.com/users/bderusha","html_url":"https://github.com/bderusha","followers_url":"https://api.github.com/users/bderusha/followers","following_url":"https://api.github.com/users/bderusha/following{/other_user}","gists_url":"https://api.github.com/users/bderusha/gists{/gist_id}","starred_url":"https://api.github.com/users/bderusha/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bderusha/subscriptions","organizations_url":"https://api.github.com/users/bderusha/orgs","repos_url":"https://api.github.com/users/bderusha/repos","events_url":"https://api.github.com/users/bderusha/events{/privacy}","received_events_url":"https://api.github.com/users/bderusha/received_events","type":"User","site_admin":false},"body":"ooo 👍 ","created_at":"2016-06-30T15:26:26Z","updated_at":"2016-06-30T15:26:26Z","html_url":"https://github.com/edx/course-discovery/pull/143#discussion_r69154152","pull_request_url":"https://api.github.com/repos/edx/course-discovery/pulls/143","_links":{"self":{"href":"https://api.github.com/repos/edx/course-discovery/pulls/comments/69154152"},"html":{"href":"https://github.com/edx/course-discovery/pull/143#discussion_r69154152"},"pull_request":{"href":"https://api.github.com/repos/edx/course-discovery/pulls/143"}}},"pull_request":{"url":"https://api.github.com/repos/edx/course-discovery/pulls/143","id":75693049,"html_url":"https://github.com/edx/course-discovery/pull/143","diff_url":"https://github.com/edx/course-discovery/pull/143.diff","patch_url":"https://github.com/edx/course-discovery/pull/143.patch","issue_url":"https://api.github.com/repos/edx/course-discovery/issues/143","number":143,"state":"open","locked":false,"title":"Programs Data Model","user":{"login":"bderusha","id":444835,"avatar_url":"https://avatars.githubusercontent.com/u/444835?v=3","gravatar_id":"","url":"https://api.github.com/users/bderusha","html_url":"https://github.com/bderusha","followers_url":"https://api.github.com/users/bderusha/followers","following_url":"https://api.github.com/users/bderusha/following{/other_user}","gists_url":"https://api.github.com/users/bderusha/gists{/gist_id}","starred_url":"https://api.github.com/users/bderusha/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bderusha/subscriptions","organizations_url":"https://api.github.com/users/bderusha/orgs","repos_url":"https://api.github.com/users/bderusha/repos","events_url":"https://api.github.com/users/bderusha/events{/privacy}","received_events_url":"https://api.github.com/users/bderusha/received_events","type":"User","site_admin":false},"body":"@clintonb please review","created_at":"2016-06-29T17:57:56Z","updated_at":"2016-06-30T15:26:26Z","closed_at":null,"merged_at":null,"merge_commit_sha":"8b8550177d83909cacfa1411c01abc8c481982b0","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/edx/course-discovery/pulls/143/commits","review_comments_url":"https://api.github.com/repos/edx/course-discovery/pulls/143/comments","review_comment_url":"https://api.github.com/repos/edx/course-discovery/pulls/comments{/number}","comments_url":"https://api.github.com/repos/edx/course-discovery/issues/143/comments","statuses_url":"https://api.github.com/repos/edx/course-discovery/statuses/7aed79803842695644080a2db90d8b92562fb766","head":{"label":"edx:bderusha/programs-models","ref":"bderusha/programs-models","sha":"7aed79803842695644080a2db90d8b92562fb766","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":45866355,"name":"course-discovery","full_name":"edx/course-discovery","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/course-discovery","description":"edX Course Catalog Service","fork":false,"url":"https://api.github.com/repos/edx/course-discovery","forks_url":"https://api.github.com/repos/edx/course-discovery/forks","keys_url":"https://api.github.com/repos/edx/course-discovery/keys{/key_id}","collaborators_url":"https://api.github.com/repos/edx/course-discovery/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/edx/course-discovery/teams","hooks_url":"https://api.github.com/repos/edx/course-discovery/hooks","issue_events_url":"https://api.github.com/repos/edx/course-discovery/issues/events{/number}","events_url":"https://api.github.com/repos/edx/course-discovery/events","assignees_url":"https://api.github.com/repos/edx/course-discovery/assignees{/user}","branches_url":"https://api.github.com/repos/edx/course-discovery/branches{/branch}","tags_url":"https://api.github.com/repos/edx/course-discovery/tags","blobs_url":"https://api.github.com/repos/edx/course-discovery/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/edx/course-discovery/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/edx/course-discovery/git/refs{/sha}","trees_url":"https://api.github.com/repos/edx/course-discovery/git/trees{/sha}","statuses_url":"https://api.github.com/repos/edx/course-discovery/statuses/{sha}","languages_url":"https://api.github.com/repos/edx/course-discovery/languages","stargazers_url":"https://api.github.com/repos/edx/course-discovery/stargazers","contributors_url":"https://api.github.com/repos/edx/course-discovery/contributors","subscribers_url":"https://api.github.com/repos/edx/course-discovery/subscribers","subscription_url":"https://api.github.com/repos/edx/course-discovery/subscription","commits_url":"https://api.github.com/repos/edx/course-discovery/commits{/sha}","git_commits_url":"https://api.github.com/repos/edx/course-discovery/git/commits{/sha}","comments_url":"https://api.github.com/repos/edx/course-discovery/comments{/number}","issue_comment_url":"https://api.github.com/repos/edx/course-discovery/issues/comments{/number}","contents_url":"https://api.github.com/repos/edx/course-discovery/contents/{+path}","compare_url":"https://api.github.com/repos/edx/course-discovery/compare/{base}...{head}","merges_url":"https://api.github.com/repos/edx/course-discovery/merges","archive_url":"https://api.github.com/repos/edx/course-discovery/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/edx/course-discovery/downloads","issues_url":"https://api.github.com/repos/edx/course-discovery/issues{/number}","pulls_url":"https://api.github.com/repos/edx/course-discovery/pulls{/number}","milestones_url":"https://api.github.com/repos/edx/course-discovery/milestones{/number}","notifications_url":"https://api.github.com/repos/edx/course-discovery/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/edx/course-discovery/labels{/name}","releases_url":"https://api.github.com/repos/edx/course-discovery/releases{/id}","deployments_url":"https://api.github.com/repos/edx/course-discovery/deployments","created_at":"2015-11-09T20:57:54Z","updated_at":"2016-06-13T22:16:44Z","pushed_at":"2016-06-30T13:58:29Z","git_url":"git://github.com/edx/course-discovery.git","ssh_url":"git@github.com:edx/course-discovery.git","clone_url":"https://github.com/edx/course-discovery.git","svn_url":"https://github.com/edx/course-discovery","homepage":"","size":478,"stargazers_count":3,"watchers_count":3,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":4,"mirror_url":null,"open_issues_count":6,"forks":4,"open_issues":6,"watchers":3,"default_branch":"master"}},"base":{"label":"edx:master","ref":"master","sha":"84401d0d8328766a7036db168ae7997ad4059ec9","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":45866355,"name":"course-discovery","full_name":"edx/course-discovery","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/course-discovery","description":"edX Course Catalog Service","fork":false,"url":"https://api.github.com/repos/edx/course-discovery","forks_url":"https://api.github.com/repos/edx/course-discovery/forks","keys_url":"https://api.github.com/repos/edx/course-discovery/keys{/key_id}","collaborators_url":"https://api.github.com/repos/edx/course-discovery/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/edx/course-discovery/teams","hooks_url":"https://api.github.com/repos/edx/course-discovery/hooks","issue_events_url":"https://api.github.com/repos/edx/course-discovery/issues/events{/number}","events_url":"https://api.github.com/repos/edx/course-discovery/events","assignees_url":"https://api.github.com/repos/edx/course-discovery/assignees{/user}","branches_url":"https://api.github.com/repos/edx/course-discovery/branches{/branch}","tags_url":"https://api.github.com/repos/edx/course-discovery/tags","blobs_url":"https://api.github.com/repos/edx/course-discovery/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/edx/course-discovery/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/edx/course-discovery/git/refs{/sha}","trees_url":"https://api.github.com/repos/edx/course-discovery/git/trees{/sha}","statuses_url":"https://api.github.com/repos/edx/course-discovery/statuses/{sha}","languages_url":"https://api.github.com/repos/edx/course-discovery/languages","stargazers_url":"https://api.github.com/repos/edx/course-discovery/stargazers","contributors_url":"https://api.github.com/repos/edx/course-discovery/contributors","subscribers_url":"https://api.github.com/repos/edx/course-discovery/subscribers","subscription_url":"https://api.github.com/repos/edx/course-discovery/subscription","commits_url":"https://api.github.com/repos/edx/course-discovery/commits{/sha}","git_commits_url":"https://api.github.com/repos/edx/course-discovery/git/commits{/sha}","comments_url":"https://api.github.com/repos/edx/course-discovery/comments{/number}","issue_comment_url":"https://api.github.com/repos/edx/course-discovery/issues/comments{/number}","contents_url":"https://api.github.com/repos/edx/course-discovery/contents/{+path}","compare_url":"https://api.github.com/repos/edx/course-discovery/compare/{base}...{head}","merges_url":"https://api.github.com/repos/edx/course-discovery/merges","archive_url":"https://api.github.com/repos/edx/course-discovery/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/edx/course-discovery/downloads","issues_url":"https://api.github.com/repos/edx/course-discovery/issues{/number}","pulls_url":"https://api.github.com/repos/edx/course-discovery/pulls{/number}","milestones_url":"https://api.github.com/repos/edx/course-discovery/milestones{/number}","notifications_url":"https://api.github.com/repos/edx/course-discovery/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/edx/course-discovery/labels{/name}","releases_url":"https://api.github.com/repos/edx/course-discovery/releases{/id}","deployments_url":"https://api.github.com/repos/edx/course-discovery/deployments","created_at":"2015-11-09T20:57:54Z","updated_at":"2016-06-13T22:16:44Z","pushed_at":"2016-06-30T13:58:29Z","git_url":"git://github.com/edx/course-discovery.git","ssh_url":"git@github.com:edx/course-discovery.git","clone_url":"https://github.com/edx/course-discovery.git","svn_url":"https://github.com/edx/course-discovery","homepage":"","size":478,"stargazers_count":3,"watchers_count":3,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":4,"mirror_url":null,"open_issues_count":6,"forks":4,"open_issues":6,"watchers":3,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/edx/course-discovery/pulls/143"},"html":{"href":"https://github.com/edx/course-discovery/pull/143"},"issue":{"href":"https://api.github.com/repos/edx/course-discovery/issues/143"},"comments":{"href":"https://api.github.com/repos/edx/course-discovery/issues/143/comments"},"review_comments":{"href":"https://api.github.com/repos/edx/course-discovery/pulls/143/comments"},"review_comment":{"href":"https://api.github.com/repos/edx/course-discovery/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/edx/course-discovery/pulls/143/commits"},"statuses":{"href":"https://api.github.com/repos/edx/course-discovery/statuses/7aed79803842695644080a2db90d8b92562fb766"}}}}
{"actor":{"display_login":"bderusha"}}