{"action":"created","comment":{"url":"https://api.github.com/repos/django/django/pulls/comments/50059616","id":50059616,"diff_hunk":"@@ -75,3 +76,37 @@ def find_command(cmd, path=None, pathext=None):\n             if os.path.isfile(fext):\n                 return fext\n     return None\n+\n+\n+def parse_model_labels(labels, source=None):","path":"django/core/management/utils.py","position":14,"original_position":14,"commit_id":"1cfa4cf26acffdaeab68f742a8c61d980436ecc8","original_commit_id":"1cfa4cf26acffdaeab68f742a8c61d980436ecc8","user":{"login":"berkerpeksag","id":26338,"avatar_url":"https://avatars.githubusercontent.com/u/26338?v=3","gravatar_id":"","url":"https://api.github.com/users/berkerpeksag","html_url":"https://github.com/berkerpeksag","followers_url":"https://api.github.com/users/berkerpeksag/followers","following_url":"https://api.github.com/users/berkerpeksag/following{/other_user}","gists_url":"https://api.github.com/users/berkerpeksag/gists{/gist_id}","starred_url":"https://api.github.com/users/berkerpeksag/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/berkerpeksag/subscriptions","organizations_url":"https://api.github.com/users/berkerpeksag/orgs","repos_url":"https://api.github.com/users/berkerpeksag/repos","events_url":"https://api.github.com/users/berkerpeksag/events{/privacy}","received_events_url":"https://api.github.com/users/berkerpeksag/received_events","type":"User","site_admin":false},"body":"This function does two things:\r\n\r\n1. Parse labels\r\n2. Re-raise `LookupError`s as `CommandError`\r\n\r\nI'd probably handle the latter step in `loaddata.py` and `dumpdata.py`. Also, I'm not sure whether changing output of a command is backward incompatible or not(In CPython it's not for example) . I don't think many people rely on exact output of Django management commands.","created_at":"2016-01-19T00:17:51Z","updated_at":"2016-01-19T00:17:51Z","html_url":"https://github.com/django/django/pull/5734#discussion_r50059616","pull_request_url":"https://api.github.com/repos/django/django/pulls/5734","_links":{"self":{"href":"https://api.github.com/repos/django/django/pulls/comments/50059616"},"html":{"href":"https://github.com/django/django/pull/5734#discussion_r50059616"},"pull_request":{"href":"https://api.github.com/repos/django/django/pulls/5734"}}},"pull_request":{"url":"https://api.github.com/repos/django/django/pulls/5734","id":52002307,"html_url":"https://github.com/django/django/pull/5734","diff_url":"https://github.com/django/django/pull/5734.diff","patch_url":"https://github.com/django/django/pull/5734.patch","issue_url":"https://api.github.com/repos/django/django/issues/5734","number":5734,"state":"open","locked":false,"title":"Fixed #20468 -- Added an `--exclude` option to the `manage.py loaddata`.","user":{"login":"alexmorozov","id":646409,"avatar_url":"https://avatars.githubusercontent.com/u/646409?v=3","gravatar_id":"","url":"https://api.github.com/users/alexmorozov","html_url":"https://github.com/alexmorozov","followers_url":"https://api.github.com/users/alexmorozov/followers","following_url":"https://api.github.com/users/alexmorozov/following{/other_user}","gists_url":"https://api.github.com/users/alexmorozov/gists{/gist_id}","starred_url":"https://api.github.com/users/alexmorozov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexmorozov/subscriptions","organizations_url":"https://api.github.com/users/alexmorozov/orgs","repos_url":"https://api.github.com/users/alexmorozov/repos","events_url":"https://api.github.com/users/alexmorozov/events{/privacy}","received_events_url":"https://api.github.com/users/alexmorozov/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-11-27T14:53:44Z","updated_at":"2016-01-19T00:17:51Z","closed_at":null,"merged_at":null,"merge_commit_sha":"3c4454f1df7438579db5e94d5986febf3a2be721","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/django/django/pulls/5734/commits","review_comments_url":"https://api.github.com/repos/django/django/pulls/5734/comments","review_comment_url":"https://api.github.com/repos/django/django/pulls/comments{/number}","comments_url":"https://api.github.com/repos/django/django/issues/5734/comments","statuses_url":"https://api.github.com/repos/django/django/statuses/1cfa4cf26acffdaeab68f742a8c61d980436ecc8","head":{"label":"alexmorozov:ticket/20468-loaddata-exclude-option","ref":"ticket/20468-loaddata-exclude-option","sha":"1cfa4cf26acffdaeab68f742a8c61d980436ecc8","user":{"login":"alexmorozov","id":646409,"avatar_url":"https://avatars.githubusercontent.com/u/646409?v=3","gravatar_id":"","url":"https://api.github.com/users/alexmorozov","html_url":"https://github.com/alexmorozov","followers_url":"https://api.github.com/users/alexmorozov/followers","following_url":"https://api.github.com/users/alexmorozov/following{/other_user}","gists_url":"https://api.github.com/users/alexmorozov/gists{/gist_id}","starred_url":"https://api.github.com/users/alexmorozov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexmorozov/subscriptions","organizations_url":"https://api.github.com/users/alexmorozov/orgs","repos_url":"https://api.github.com/users/alexmorozov/repos","events_url":"https://api.github.com/users/alexmorozov/events{/privacy}","received_events_url":"https://api.github.com/users/alexmorozov/received_events","type":"User","site_admin":false},"repo":{"id":12749724,"name":"django","full_name":"alexmorozov/django","owner":{"login":"alexmorozov","id":646409,"avatar_url":"https://avatars.githubusercontent.com/u/646409?v=3","gravatar_id":"","url":"https://api.github.com/users/alexmorozov","html_url":"https://github.com/alexmorozov","followers_url":"https://api.github.com/users/alexmorozov/followers","following_url":"https://api.github.com/users/alexmorozov/following{/other_user}","gists_url":"https://api.github.com/users/alexmorozov/gists{/gist_id}","starred_url":"https://api.github.com/users/alexmorozov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexmorozov/subscriptions","organizations_url":"https://api.github.com/users/alexmorozov/orgs","repos_url":"https://api.github.com/users/alexmorozov/repos","events_url":"https://api.github.com/users/alexmorozov/events{/privacy}","received_events_url":"https://api.github.com/users/alexmorozov/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/alexmorozov/django","description":"The Web framework for perfectionists with deadlines.","fork":true,"url":"https://api.github.com/repos/alexmorozov/django","forks_url":"https://api.github.com/repos/alexmorozov/django/forks","keys_url":"https://api.github.com/repos/alexmorozov/django/keys{/key_id}","collaborators_url":"https://api.github.com/repos/alexmorozov/django/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/alexmorozov/django/teams","hooks_url":"https://api.github.com/repos/alexmorozov/django/hooks","issue_events_url":"https://api.github.com/repos/alexmorozov/django/issues/events{/number}","events_url":"https://api.github.com/repos/alexmorozov/django/events","assignees_url":"https://api.github.com/repos/alexmorozov/django/assignees{/user}","branches_url":"https://api.github.com/repos/alexmorozov/django/branches{/branch}","tags_url":"https://api.github.com/repos/alexmorozov/django/tags","blobs_url":"https://api.github.com/repos/alexmorozov/django/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/alexmorozov/django/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/alexmorozov/django/git/refs{/sha}","trees_url":"https://api.github.com/repos/alexmorozov/django/git/trees{/sha}","statuses_url":"https://api.github.com/repos/alexmorozov/django/statuses/{sha}","languages_url":"https://api.github.com/repos/alexmorozov/django/languages","stargazers_url":"https://api.github.com/repos/alexmorozov/django/stargazers","contributors_url":"https://api.github.com/repos/alexmorozov/django/contributors","subscribers_url":"https://api.github.com/repos/alexmorozov/django/subscribers","subscription_url":"https://api.github.com/repos/alexmorozov/django/subscription","commits_url":"https://api.github.com/repos/alexmorozov/django/commits{/sha}","git_commits_url":"https://api.github.com/repos/alexmorozov/django/git/commits{/sha}","comments_url":"https://api.github.com/repos/alexmorozov/django/comments{/number}","issue_comment_url":"https://api.github.com/repos/alexmorozov/django/issues/comments{/number}","contents_url":"https://api.github.com/repos/alexmorozov/django/contents/{+path}","compare_url":"https://api.github.com/repos/alexmorozov/django/compare/{base}...{head}","merges_url":"https://api.github.com/repos/alexmorozov/django/merges","archive_url":"https://api.github.com/repos/alexmorozov/django/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/alexmorozov/django/downloads","issues_url":"https://api.github.com/repos/alexmorozov/django/issues{/number}","pulls_url":"https://api.github.com/repos/alexmorozov/django/pulls{/number}","milestones_url":"https://api.github.com/repos/alexmorozov/django/milestones{/number}","notifications_url":"https://api.github.com/repos/alexmorozov/django/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/alexmorozov/django/labels{/name}","releases_url":"https://api.github.com/repos/alexmorozov/django/releases{/id}","created_at":"2013-09-11T06:57:50Z","updated_at":"2015-03-10T00:44:59Z","pushed_at":"2015-12-22T12:37:40Z","git_url":"git://github.com/alexmorozov/django.git","ssh_url":"git@github.com:alexmorozov/django.git","clone_url":"https://github.com/alexmorozov/django.git","svn_url":"https://github.com/alexmorozov/django","homepage":"http://www.djangoproject.com/","size":120813,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":false,"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":"django:master","ref":"master","sha":"b10f66831ba2fc68901bc674104a76eb112ee52a","user":{"login":"django","id":27804,"avatar_url":"https://avatars.githubusercontent.com/u/27804?v=3","gravatar_id":"","url":"https://api.github.com/users/django","html_url":"https://github.com/django","followers_url":"https://api.github.com/users/django/followers","following_url":"https://api.github.com/users/django/following{/other_user}","gists_url":"https://api.github.com/users/django/gists{/gist_id}","starred_url":"https://api.github.com/users/django/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/django/subscriptions","organizations_url":"https://api.github.com/users/django/orgs","repos_url":"https://api.github.com/users/django/repos","events_url":"https://api.github.com/users/django/events{/privacy}","received_events_url":"https://api.github.com/users/django/received_events","type":"Organization","site_admin":false},"repo":{"id":4164482,"name":"django","full_name":"django/django","owner":{"login":"django","id":27804,"avatar_url":"https://avatars.githubusercontent.com/u/27804?v=3","gravatar_id":"","url":"https://api.github.com/users/django","html_url":"https://github.com/django","followers_url":"https://api.github.com/users/django/followers","following_url":"https://api.github.com/users/django/following{/other_user}","gists_url":"https://api.github.com/users/django/gists{/gist_id}","starred_url":"https://api.github.com/users/django/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/django/subscriptions","organizations_url":"https://api.github.com/users/django/orgs","repos_url":"https://api.github.com/users/django/repos","events_url":"https://api.github.com/users/django/events{/privacy}","received_events_url":"https://api.github.com/users/django/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/django/django","description":"The Web framework for perfectionists with deadlines.","fork":false,"url":"https://api.github.com/repos/django/django","forks_url":"https://api.github.com/repos/django/django/forks","keys_url":"https://api.github.com/repos/django/django/keys{/key_id}","collaborators_url":"https://api.github.com/repos/django/django/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/django/django/teams","hooks_url":"https://api.github.com/repos/django/django/hooks","issue_events_url":"https://api.github.com/repos/django/django/issues/events{/number}","events_url":"https://api.github.com/repos/django/django/events","assignees_url":"https://api.github.com/repos/django/django/assignees{/user}","branches_url":"https://api.github.com/repos/django/django/branches{/branch}","tags_url":"https://api.github.com/repos/django/django/tags","blobs_url":"https://api.github.com/repos/django/django/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/django/django/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/django/django/git/refs{/sha}","trees_url":"https://api.github.com/repos/django/django/git/trees{/sha}","statuses_url":"https://api.github.com/repos/django/django/statuses/{sha}","languages_url":"https://api.github.com/repos/django/django/languages","stargazers_url":"https://api.github.com/repos/django/django/stargazers","contributors_url":"https://api.github.com/repos/django/django/contributors","subscribers_url":"https://api.github.com/repos/django/django/subscribers","subscription_url":"https://api.github.com/repos/django/django/subscription","commits_url":"https://api.github.com/repos/django/django/commits{/sha}","git_commits_url":"https://api.github.com/repos/django/django/git/commits{/sha}","comments_url":"https://api.github.com/repos/django/django/comments{/number}","issue_comment_url":"https://api.github.com/repos/django/django/issues/comments{/number}","contents_url":"https://api.github.com/repos/django/django/contents/{+path}","compare_url":"https://api.github.com/repos/django/django/compare/{base}...{head}","merges_url":"https://api.github.com/repos/django/django/merges","archive_url":"https://api.github.com/repos/django/django/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/django/django/downloads","issues_url":"https://api.github.com/repos/django/django/issues{/number}","pulls_url":"https://api.github.com/repos/django/django/pulls{/number}","milestones_url":"https://api.github.com/repos/django/django/milestones{/number}","notifications_url":"https://api.github.com/repos/django/django/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/django/django/labels{/name}","releases_url":"https://api.github.com/repos/django/django/releases{/id}","created_at":"2012-04-28T02:47:18Z","updated_at":"2016-01-19T00:11:10Z","pushed_at":"2016-01-18T21:17:32Z","git_url":"git://github.com/django/django.git","ssh_url":"git@github.com:django/django.git","clone_url":"https://github.com/django/django.git","svn_url":"https://github.com/django/django","homepage":"https://www.djangoproject.com/","size":181186,"stargazers_count":17587,"watchers_count":17587,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":7150,"mirror_url":null,"open_issues_count":102,"forks":7150,"open_issues":102,"watchers":17587,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/django/django/pulls/5734"},"html":{"href":"https://github.com/django/django/pull/5734"},"issue":{"href":"https://api.github.com/repos/django/django/issues/5734"},"comments":{"href":"https://api.github.com/repos/django/django/issues/5734/comments"},"review_comments":{"href":"https://api.github.com/repos/django/django/pulls/5734/comments"},"review_comment":{"href":"https://api.github.com/repos/django/django/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/django/django/pulls/5734/commits"},"statuses":{"href":"https://api.github.com/repos/django/django/statuses/1cfa4cf26acffdaeab68f742a8c61d980436ecc8"}}}}