{"action":"created","comment":{"url":"https://api.github.com/repos/django/django/pulls/comments/155354982","pull_request_review_id":81661141,"id":155354982,"diff_hunk":"@@ -237,7 +237,10 @@ def __get__(self, instance, cls=None):\n                     pk = rel_obj._meta.pk\n                     # If the primary key is a remote field, use the referenced\n                     # field's to_python().\n-                    pk_to_python = pk.target_field.to_python if pk.remote_field else pk.to_python\n+                    to_python_field = pk\n+                    while to_python_field.remote_field:","path":"django/contrib/contenttypes/fields.py","position":6,"original_position":6,"commit_id":"33abc89a1ae21148f372e87bc2fa27aad83c208d","original_commit_id":"33abc89a1ae21148f372e87bc2fa27aad83c208d","user":{"login":"morganwahl","id":1095228,"avatar_url":"https://avatars3.githubusercontent.com/u/1095228?v=4","gravatar_id":"","url":"https://api.github.com/users/morganwahl","html_url":"https://github.com/morganwahl","followers_url":"https://api.github.com/users/morganwahl/followers","following_url":"https://api.github.com/users/morganwahl/following{/other_user}","gists_url":"https://api.github.com/users/morganwahl/gists{/gist_id}","starred_url":"https://api.github.com/users/morganwahl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/morganwahl/subscriptions","organizations_url":"https://api.github.com/users/morganwahl/orgs","repos_url":"https://api.github.com/users/morganwahl/repos","events_url":"https://api.github.com/users/morganwahl/events{/privacy}","received_events_url":"https://api.github.com/users/morganwahl/received_events","type":"User","site_admin":false},"body":"Good point; will do.","created_at":"2017-12-06T20:42:35Z","updated_at":"2017-12-06T20:42:35Z","html_url":"https://github.com/django/django/pull/9432#discussion_r155354982","pull_request_url":"https://api.github.com/repos/django/django/pulls/9432","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/django/django/pulls/comments/155354982"},"html":{"href":"https://github.com/django/django/pull/9432#discussion_r155354982"},"pull_request":{"href":"https://api.github.com/repos/django/django/pulls/9432"}},"in_reply_to_id":155280917},"pull_request":{"url":"https://api.github.com/repos/django/django/pulls/9432","id":156585121,"html_url":"https://github.com/django/django/pull/9432","diff_url":"https://github.com/django/django/pull/9432.diff","patch_url":"https://github.com/django/django/pull/9432.patch","issue_url":"https://api.github.com/repos/django/django/issues/9432","number":9432,"state":"open","locked":false,"title":"[1.11.x] Refs #28856 -- Fixed caching of a GenericForeignKey pointing to a model that uses more than one level of MTI.","user":{"login":"morganwahl","id":1095228,"avatar_url":"https://avatars3.githubusercontent.com/u/1095228?v=4","gravatar_id":"","url":"https://api.github.com/users/morganwahl","html_url":"https://github.com/morganwahl","followers_url":"https://api.github.com/users/morganwahl/followers","following_url":"https://api.github.com/users/morganwahl/following{/other_user}","gists_url":"https://api.github.com/users/morganwahl/gists{/gist_id}","starred_url":"https://api.github.com/users/morganwahl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/morganwahl/subscriptions","organizations_url":"https://api.github.com/users/morganwahl/orgs","repos_url":"https://api.github.com/users/morganwahl/repos","events_url":"https://api.github.com/users/morganwahl/events{/privacy}","received_events_url":"https://api.github.com/users/morganwahl/received_events","type":"User","site_admin":false},"body":"https://code.djangoproject.com/ticket/28856","created_at":"2017-12-05T21:56:01Z","updated_at":"2017-12-06T20:42:35Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f37290287473b70b45d3ab5ed47b389f62fa2bad","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/django/django/pulls/9432/commits","review_comments_url":"https://api.github.com/repos/django/django/pulls/9432/comments","review_comment_url":"https://api.github.com/repos/django/django/pulls/comments{/number}","comments_url":"https://api.github.com/repos/django/django/issues/9432/comments","statuses_url":"https://api.github.com/repos/django/django/statuses/33abc89a1ae21148f372e87bc2fa27aad83c208d","head":{"label":"addgene:mw/gfk-recursive-fix","ref":"mw/gfk-recursive-fix","sha":"33abc89a1ae21148f372e87bc2fa27aad83c208d","user":{"login":"addgene","id":346192,"avatar_url":"https://avatars3.githubusercontent.com/u/346192?v=4","gravatar_id":"","url":"https://api.github.com/users/addgene","html_url":"https://github.com/addgene","followers_url":"https://api.github.com/users/addgene/followers","following_url":"https://api.github.com/users/addgene/following{/other_user}","gists_url":"https://api.github.com/users/addgene/gists{/gist_id}","starred_url":"https://api.github.com/users/addgene/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/addgene/subscriptions","organizations_url":"https://api.github.com/users/addgene/orgs","repos_url":"https://api.github.com/users/addgene/repos","events_url":"https://api.github.com/users/addgene/events{/privacy}","received_events_url":"https://api.github.com/users/addgene/received_events","type":"Organization","site_admin":false},"repo":{"id":112519242,"name":"django","full_name":"addgene/django","owner":{"login":"addgene","id":346192,"avatar_url":"https://avatars3.githubusercontent.com/u/346192?v=4","gravatar_id":"","url":"https://api.github.com/users/addgene","html_url":"https://github.com/addgene","followers_url":"https://api.github.com/users/addgene/followers","following_url":"https://api.github.com/users/addgene/following{/other_user}","gists_url":"https://api.github.com/users/addgene/gists{/gist_id}","starred_url":"https://api.github.com/users/addgene/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/addgene/subscriptions","organizations_url":"https://api.github.com/users/addgene/orgs","repos_url":"https://api.github.com/users/addgene/repos","events_url":"https://api.github.com/users/addgene/events{/privacy}","received_events_url":"https://api.github.com/users/addgene/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/addgene/django","description":"The Web framework for perfectionists with deadlines.","fork":true,"url":"https://api.github.com/repos/addgene/django","forks_url":"https://api.github.com/repos/addgene/django/forks","keys_url":"https://api.github.com/repos/addgene/django/keys{/key_id}","collaborators_url":"https://api.github.com/repos/addgene/django/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/addgene/django/teams","hooks_url":"https://api.github.com/repos/addgene/django/hooks","issue_events_url":"https://api.github.com/repos/addgene/django/issues/events{/number}","events_url":"https://api.github.com/repos/addgene/django/events","assignees_url":"https://api.github.com/repos/addgene/django/assignees{/user}","branches_url":"https://api.github.com/repos/addgene/django/branches{/branch}","tags_url":"https://api.github.com/repos/addgene/django/tags","blobs_url":"https://api.github.com/repos/addgene/django/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/addgene/django/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/addgene/django/git/refs{/sha}","trees_url":"https://api.github.com/repos/addgene/django/git/trees{/sha}","statuses_url":"https://api.github.com/repos/addgene/django/statuses/{sha}","languages_url":"https://api.github.com/repos/addgene/django/languages","stargazers_url":"https://api.github.com/repos/addgene/django/stargazers","contributors_url":"https://api.github.com/repos/addgene/django/contributors","subscribers_url":"https://api.github.com/repos/addgene/django/subscribers","subscription_url":"https://api.github.com/repos/addgene/django/subscription","commits_url":"https://api.github.com/repos/addgene/django/commits{/sha}","git_commits_url":"https://api.github.com/repos/addgene/django/git/commits{/sha}","comments_url":"https://api.github.com/repos/addgene/django/comments{/number}","issue_comment_url":"https://api.github.com/repos/addgene/django/issues/comments{/number}","contents_url":"https://api.github.com/repos/addgene/django/contents/{+path}","compare_url":"https://api.github.com/repos/addgene/django/compare/{base}...{head}","merges_url":"https://api.github.com/repos/addgene/django/merges","archive_url":"https://api.github.com/repos/addgene/django/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/addgene/django/downloads","issues_url":"https://api.github.com/repos/addgene/django/issues{/number}","pulls_url":"https://api.github.com/repos/addgene/django/pulls{/number}","milestones_url":"https://api.github.com/repos/addgene/django/milestones{/number}","notifications_url":"https://api.github.com/repos/addgene/django/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/addgene/django/labels{/name}","releases_url":"https://api.github.com/repos/addgene/django/releases{/id}","deployments_url":"https://api.github.com/repos/addgene/django/deployments","created_at":"2017-11-29T19:36:20Z","updated_at":"2017-11-29T19:36:40Z","pushed_at":"2017-12-06T16:42:15Z","git_url":"git://github.com/addgene/django.git","ssh_url":"git@github.com:addgene/django.git","clone_url":"https://github.com/addgene/django.git","svn_url":"https://github.com/addgene/django","homepage":"https://www.djangoproject.com/","size":170442,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":null,"forks":0,"open_issues":0,"watchers":0,"default_branch":"stable/1.10.x-addgene"}},"base":{"label":"django:stable/1.11.x","ref":"stable/1.11.x","sha":"1decd0197d241b27d54bb12eca04b7e89a9ccba6","user":{"login":"django","id":27804,"avatar_url":"https://avatars2.githubusercontent.com/u/27804?v=4","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://avatars2.githubusercontent.com/u/27804?v=4","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":"2017-12-06T20:24:17Z","pushed_at":"2017-12-06T19:49:56Z","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":173099,"stargazers_count":30113,"watchers_count":30113,"language":"Python","has_issues":false,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":12691,"mirror_url":null,"archived":false,"open_issues_count":209,"license":null,"forks":12691,"open_issues":209,"watchers":30113,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/django/django/pulls/9432"},"html":{"href":"https://github.com/django/django/pull/9432"},"issue":{"href":"https://api.github.com/repos/django/django/issues/9432"},"comments":{"href":"https://api.github.com/repos/django/django/issues/9432/comments"},"review_comments":{"href":"https://api.github.com/repos/django/django/pulls/9432/comments"},"review_comment":{"href":"https://api.github.com/repos/django/django/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/django/django/pulls/9432/commits"},"statuses":{"href":"https://api.github.com/repos/django/django/statuses/33abc89a1ae21148f372e87bc2fa27aad83c208d"}},"author_association":"NONE"}}
{"actor":{"display_login":"morganwahl"}}