{"action":"created","comment":{"url":"https://api.github.com/repos/django/django/pulls/comments/55063817","id":55063817,"diff_hunk":"@@ -12,7 +13,19 @@ def i18n_patterns(*urls):\n     \"\"\"\n     if not settings.USE_I18N:\n         return urls\n-    return [LocaleRegexURLResolver(list(urls))]\n+    prefix_default_language = kwargs.get('prefix_default_language', True)\n+    return [LocaleRegexURLResolver(\n+        list(urls),\n+        prefix_default_language=prefix_default_language,\n+    )]\n+\n+\n+@lru_cache.lru_cache(maxsize=None)\n+def is_language_prefix_patterns_used(urlconf):","path":"django/conf/urls/i18n.py","position":27,"original_position":27,"commit_id":"1d6e0ee472d2d286e82940d5019e2328f64b5bab","original_commit_id":"1d6e0ee472d2d286e82940d5019e2328f64b5bab","user":{"login":"charettes","id":9293,"avatar_url":"https://avatars.githubusercontent.com/u/9293?v=3","gravatar_id":"","url":"https://api.github.com/users/charettes","html_url":"https://github.com/charettes","followers_url":"https://api.github.com/users/charettes/followers","following_url":"https://api.github.com/users/charettes/following{/other_user}","gists_url":"https://api.github.com/users/charettes/gists{/gist_id}","starred_url":"https://api.github.com/users/charettes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/charettes/subscriptions","organizations_url":"https://api.github.com/users/charettes/orgs","repos_url":"https://api.github.com/users/charettes/repos","events_url":"https://api.github.com/users/charettes/events{/privacy}","received_events_url":"https://api.github.com/users/charettes/received_events","type":"User","site_admin":false},"body":"A small docstring wouldn't hurt here.","created_at":"2016-03-04T17:56:43Z","updated_at":"2016-03-04T17:56:43Z","html_url":"https://github.com/django/django/pull/6222#discussion_r55063817","pull_request_url":"https://api.github.com/repos/django/django/pulls/6222","_links":{"self":{"href":"https://api.github.com/repos/django/django/pulls/comments/55063817"},"html":{"href":"https://github.com/django/django/pull/6222#discussion_r55063817"},"pull_request":{"href":"https://api.github.com/repos/django/django/pulls/6222"}}},"pull_request":{"url":"https://api.github.com/repos/django/django/pulls/6222","id":61043886,"html_url":"https://github.com/django/django/pull/6222","diff_url":"https://github.com/django/django/pull/6222.diff","patch_url":"https://github.com/django/django/pull/6222.patch","issue_url":"https://api.github.com/repos/django/django/issues/6222","number":6222,"state":"open","locked":false,"title":"Fixed #25933 -- Allowed an unprefixed default language in i18n_patterns().","user":{"login":"urbaniak","id":25346,"avatar_url":"https://avatars.githubusercontent.com/u/25346?v=3","gravatar_id":"","url":"https://api.github.com/users/urbaniak","html_url":"https://github.com/urbaniak","followers_url":"https://api.github.com/users/urbaniak/followers","following_url":"https://api.github.com/users/urbaniak/following{/other_user}","gists_url":"https://api.github.com/users/urbaniak/gists{/gist_id}","starred_url":"https://api.github.com/users/urbaniak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/urbaniak/subscriptions","organizations_url":"https://api.github.com/users/urbaniak/orgs","repos_url":"https://api.github.com/users/urbaniak/repos","events_url":"https://api.github.com/users/urbaniak/events{/privacy}","received_events_url":"https://api.github.com/users/urbaniak/received_events","type":"User","site_admin":false},"body":"https://code.djangoproject.com/ticket/25933#ticket\r\n\r\nUpdated from #5823.","created_at":"2016-02-29T08:37:31Z","updated_at":"2016-03-04T17:56:43Z","closed_at":null,"merged_at":null,"merge_commit_sha":"7b500d94efa82c8a85525e00d2e2d5a12540b96b","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/django/django/pulls/6222/commits","review_comments_url":"https://api.github.com/repos/django/django/pulls/6222/comments","review_comment_url":"https://api.github.com/repos/django/django/pulls/comments{/number}","comments_url":"https://api.github.com/repos/django/django/issues/6222/comments","statuses_url":"https://api.github.com/repos/django/django/statuses/1d6e0ee472d2d286e82940d5019e2328f64b5bab","head":{"label":"urbaniak:unprefixed_default_language","ref":"unprefixed_default_language","sha":"1d6e0ee472d2d286e82940d5019e2328f64b5bab","user":{"login":"urbaniak","id":25346,"avatar_url":"https://avatars.githubusercontent.com/u/25346?v=3","gravatar_id":"","url":"https://api.github.com/users/urbaniak","html_url":"https://github.com/urbaniak","followers_url":"https://api.github.com/users/urbaniak/followers","following_url":"https://api.github.com/users/urbaniak/following{/other_user}","gists_url":"https://api.github.com/users/urbaniak/gists{/gist_id}","starred_url":"https://api.github.com/users/urbaniak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/urbaniak/subscriptions","organizations_url":"https://api.github.com/users/urbaniak/orgs","repos_url":"https://api.github.com/users/urbaniak/repos","events_url":"https://api.github.com/users/urbaniak/events{/privacy}","received_events_url":"https://api.github.com/users/urbaniak/received_events","type":"User","site_admin":false},"repo":{"id":47923731,"name":"django","full_name":"urbaniak/django","owner":{"login":"urbaniak","id":25346,"avatar_url":"https://avatars.githubusercontent.com/u/25346?v=3","gravatar_id":"","url":"https://api.github.com/users/urbaniak","html_url":"https://github.com/urbaniak","followers_url":"https://api.github.com/users/urbaniak/followers","following_url":"https://api.github.com/users/urbaniak/following{/other_user}","gists_url":"https://api.github.com/users/urbaniak/gists{/gist_id}","starred_url":"https://api.github.com/users/urbaniak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/urbaniak/subscriptions","organizations_url":"https://api.github.com/users/urbaniak/orgs","repos_url":"https://api.github.com/users/urbaniak/repos","events_url":"https://api.github.com/users/urbaniak/events{/privacy}","received_events_url":"https://api.github.com/users/urbaniak/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/urbaniak/django","description":"The Web framework for perfectionists with deadlines.","fork":true,"url":"https://api.github.com/repos/urbaniak/django","forks_url":"https://api.github.com/repos/urbaniak/django/forks","keys_url":"https://api.github.com/repos/urbaniak/django/keys{/key_id}","collaborators_url":"https://api.github.com/repos/urbaniak/django/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/urbaniak/django/teams","hooks_url":"https://api.github.com/repos/urbaniak/django/hooks","issue_events_url":"https://api.github.com/repos/urbaniak/django/issues/events{/number}","events_url":"https://api.github.com/repos/urbaniak/django/events","assignees_url":"https://api.github.com/repos/urbaniak/django/assignees{/user}","branches_url":"https://api.github.com/repos/urbaniak/django/branches{/branch}","tags_url":"https://api.github.com/repos/urbaniak/django/tags","blobs_url":"https://api.github.com/repos/urbaniak/django/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/urbaniak/django/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/urbaniak/django/git/refs{/sha}","trees_url":"https://api.github.com/repos/urbaniak/django/git/trees{/sha}","statuses_url":"https://api.github.com/repos/urbaniak/django/statuses/{sha}","languages_url":"https://api.github.com/repos/urbaniak/django/languages","stargazers_url":"https://api.github.com/repos/urbaniak/django/stargazers","contributors_url":"https://api.github.com/repos/urbaniak/django/contributors","subscribers_url":"https://api.github.com/repos/urbaniak/django/subscribers","subscription_url":"https://api.github.com/repos/urbaniak/django/subscription","commits_url":"https://api.github.com/repos/urbaniak/django/commits{/sha}","git_commits_url":"https://api.github.com/repos/urbaniak/django/git/commits{/sha}","comments_url":"https://api.github.com/repos/urbaniak/django/comments{/number}","issue_comment_url":"https://api.github.com/repos/urbaniak/django/issues/comments{/number}","contents_url":"https://api.github.com/repos/urbaniak/django/contents/{+path}","compare_url":"https://api.github.com/repos/urbaniak/django/compare/{base}...{head}","merges_url":"https://api.github.com/repos/urbaniak/django/merges","archive_url":"https://api.github.com/repos/urbaniak/django/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/urbaniak/django/downloads","issues_url":"https://api.github.com/repos/urbaniak/django/issues{/number}","pulls_url":"https://api.github.com/repos/urbaniak/django/pulls{/number}","milestones_url":"https://api.github.com/repos/urbaniak/django/milestones{/number}","notifications_url":"https://api.github.com/repos/urbaniak/django/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/urbaniak/django/labels{/name}","releases_url":"https://api.github.com/repos/urbaniak/django/releases{/id}","deployments_url":"https://api.github.com/repos/urbaniak/django/deployments","created_at":"2015-12-13T15:03:29Z","updated_at":"2015-12-13T15:03:45Z","pushed_at":"2016-03-04T17:35:48Z","git_url":"git://github.com/urbaniak/django.git","ssh_url":"git@github.com:urbaniak/django.git","clone_url":"https://github.com/urbaniak/django.git","svn_url":"https://github.com/urbaniak/django","homepage":"https://www.djangoproject.com/","size":144782,"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":"de8a11ba18d5902c668d4db47c38c9c6bdf9c1da","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}","deployments_url":"https://api.github.com/repos/django/django/deployments","created_at":"2012-04-28T02:47:18Z","updated_at":"2016-03-04T16:15:50Z","pushed_at":"2016-03-04T17:35:54Z","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":182707,"stargazers_count":18352,"watchers_count":18352,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":7450,"mirror_url":null,"open_issues_count":79,"forks":7450,"open_issues":79,"watchers":18352,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/django/django/pulls/6222"},"html":{"href":"https://github.com/django/django/pull/6222"},"issue":{"href":"https://api.github.com/repos/django/django/issues/6222"},"comments":{"href":"https://api.github.com/repos/django/django/issues/6222/comments"},"review_comments":{"href":"https://api.github.com/repos/django/django/pulls/6222/comments"},"review_comment":{"href":"https://api.github.com/repos/django/django/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/django/django/pulls/6222/commits"},"statuses":{"href":"https://api.github.com/repos/django/django/statuses/1d6e0ee472d2d286e82940d5019e2328f64b5bab"}}}}