{"action":"created","issue":{"url":"https://api.github.com/repos/edoburu/sphinxcontrib-django/issues/3","repository_url":"https://api.github.com/repos/edoburu/sphinxcontrib-django","labels_url":"https://api.github.com/repos/edoburu/sphinxcontrib-django/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/edoburu/sphinxcontrib-django/issues/3/comments","events_url":"https://api.github.com/repos/edoburu/sphinxcontrib-django/issues/3/events","html_url":"https://github.com/edoburu/sphinxcontrib-django/pull/3","id":294277080,"number":3,"title":"Allow foreign keys to be strings","user":{"login":"wesleykendall","id":1497710,"avatar_url":"https://avatars0.githubusercontent.com/u/1497710?v=4","gravatar_id":"","url":"https://api.github.com/users/wesleykendall","html_url":"https://github.com/wesleykendall","followers_url":"https://api.github.com/users/wesleykendall/followers","following_url":"https://api.github.com/users/wesleykendall/following{/other_user}","gists_url":"https://api.github.com/users/wesleykendall/gists{/gist_id}","starred_url":"https://api.github.com/users/wesleykendall/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wesleykendall/subscriptions","organizations_url":"https://api.github.com/users/wesleykendall/orgs","repos_url":"https://api.github.com/users/wesleykendall/repos","events_url":"https://api.github.com/users/wesleykendall/events{/privacy}","received_events_url":"https://api.github.com/users/wesleykendall/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-02-05T05:23:12Z","updated_at":"2018-02-06T11:56:29Z","closed_at":"2018-02-06T11:53:31Z","author_association":"CONTRIBUTOR","pull_request":{"url":"https://api.github.com/repos/edoburu/sphinxcontrib-django/pulls/3","html_url":"https://github.com/edoburu/sphinxcontrib-django/pull/3","diff_url":"https://github.com/edoburu/sphinxcontrib-django/pull/3.diff","patch_url":"https://github.com/edoburu/sphinxcontrib-django/pull/3.patch"},"body":"Hello, awesome project! I encountered a bug when `'auth.User'` was provided as a foreign key. It's valid to have a string path as a Foreign Key, and this change just prints the string path.\r\n\r\nI'm not sure of other places in the code that would need to be updated to handle this case. Maybe we can try to update those too?"},"comment":{"url":"https://api.github.com/repos/edoburu/sphinxcontrib-django/issues/comments/363400785","html_url":"https://github.com/edoburu/sphinxcontrib-django/pull/3#issuecomment-363400785","issue_url":"https://api.github.com/repos/edoburu/sphinxcontrib-django/issues/3","id":363400785,"user":{"login":"vdboor","id":200303,"avatar_url":"https://avatars3.githubusercontent.com/u/200303?v=4","gravatar_id":"","url":"https://api.github.com/users/vdboor","html_url":"https://github.com/vdboor","followers_url":"https://api.github.com/users/vdboor/followers","following_url":"https://api.github.com/users/vdboor/following{/other_user}","gists_url":"https://api.github.com/users/vdboor/gists{/gist_id}","starred_url":"https://api.github.com/users/vdboor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vdboor/subscriptions","organizations_url":"https://api.github.com/users/vdboor/orgs","repos_url":"https://api.github.com/users/vdboor/repos","events_url":"https://api.github.com/users/vdboor/events{/privacy}","received_events_url":"https://api.github.com/users/vdboor/received_events","type":"User","site_admin":false},"created_at":"2018-02-06T11:56:29Z","updated_at":"2018-02-06T11:56:29Z","author_association":"OWNER","body":"> I'm not sure of other places in the code that would need to be updated to handle this case. Maybe we can try to update those too?\r\n\r\nOne change would be to use `apps.get_model()` to fetch the actual class, and print that instead."}}
{"actor":{"display_login":"vdboor"}}