{"action":"created","issue":{"url":"https://api.github.com/repos/django/django/issues/5846","labels_url":"https://api.github.com/repos/django/django/issues/5846/labels{/name}","comments_url":"https://api.github.com/repos/django/django/issues/5846/comments","events_url":"https://api.github.com/repos/django/django/issues/5846/events","html_url":"https://github.com/django/django/pull/5846","id":123337031,"number":5846,"title":"Fixed #21528 -- Document parent access in formfield_for_foreignkey","user":{"login":"francoisfreitag","id":2758243,"avatar_url":"https://avatars.githubusercontent.com/u/2758243?v=3","gravatar_id":"","url":"https://api.github.com/users/francoisfreitag","html_url":"https://github.com/francoisfreitag","followers_url":"https://api.github.com/users/francoisfreitag/followers","following_url":"https://api.github.com/users/francoisfreitag/following{/other_user}","gists_url":"https://api.github.com/users/francoisfreitag/gists{/gist_id}","starred_url":"https://api.github.com/users/francoisfreitag/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/francoisfreitag/subscriptions","organizations_url":"https://api.github.com/users/francoisfreitag/orgs","repos_url":"https://api.github.com/users/francoisfreitag/repos","events_url":"https://api.github.com/users/francoisfreitag/events{/privacy}","received_events_url":"https://api.github.com/users/francoisfreitag/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-12-21T18:56:15Z","updated_at":"2016-01-03T12:25:27Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/django/django/pulls/5846","html_url":"https://github.com/django/django/pull/5846","diff_url":"https://github.com/django/django/pull/5846.diff","patch_url":"https://github.com/django/django/pull/5846.patch"},"body":"Since this is my first commit to Django, I started with some documentation.\r\n\r\nIf it looks good to you, I'll try to implement a nicer way to retrieve parent's ID in ``ModelAdmin``."},"comment":{"url":"https://api.github.com/repos/django/django/issues/comments/168493898","html_url":"https://github.com/django/django/pull/5846#issuecomment-168493898","issue_url":"https://api.github.com/repos/django/django/issues/5846","id":168493898,"user":{"login":"francoisfreitag","id":2758243,"avatar_url":"https://avatars.githubusercontent.com/u/2758243?v=3","gravatar_id":"","url":"https://api.github.com/users/francoisfreitag","html_url":"https://github.com/francoisfreitag","followers_url":"https://api.github.com/users/francoisfreitag/followers","following_url":"https://api.github.com/users/francoisfreitag/following{/other_user}","gists_url":"https://api.github.com/users/francoisfreitag/gists{/gist_id}","starred_url":"https://api.github.com/users/francoisfreitag/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/francoisfreitag/subscriptions","organizations_url":"https://api.github.com/users/francoisfreitag/orgs","repos_url":"https://api.github.com/users/francoisfreitag/repos","events_url":"https://api.github.com/users/francoisfreitag/events{/privacy}","received_events_url":"https://api.github.com/users/francoisfreitag/received_events","type":"User","site_admin":false},"created_at":"2016-01-03T12:25:27Z","updated_at":"2016-01-03T12:25:27Z","body":"I would pass the parent object to `formfield_for_foreignkey` this way: https://github.com/django/django/commit/d8dd30c0bc5400f0938e5b05114320cf95947e8e.\r\n\r\nIf it seems like the way to go, I will add a deprecation warning when `parent` is present in the method kwargs (meaning that the old `formfield_for_foreignkey` definition is used)."}}