{"action":"opened","number":17,"pull_request":{"url":"https://api.github.com/repos/onysos/django-composite-foreignkey/pulls/17","id":220039779,"node_id":"MDExOlB1bGxSZXF1ZXN0MjIwMDM5Nzc5","html_url":"https://github.com/onysos/django-composite-foreignkey/pull/17","diff_url":"https://github.com/onysos/django-composite-foreignkey/pull/17.diff","patch_url":"https://github.com/onysos/django-composite-foreignkey/pull/17.patch","issue_url":"https://api.github.com/repos/onysos/django-composite-foreignkey/issues/17","number":17,"state":"open","locked":false,"title":"Add import statement","user":{"login":"selcuk","id":937072,"node_id":"MDQ6VXNlcjkzNzA3Mg==","avatar_url":"https://avatars1.githubusercontent.com/u/937072?v=4","gravatar_id":"","url":"https://api.github.com/users/selcuk","html_url":"https://github.com/selcuk","followers_url":"https://api.github.com/users/selcuk/followers","following_url":"https://api.github.com/users/selcuk/following{/other_user}","gists_url":"https://api.github.com/users/selcuk/gists{/gist_id}","starred_url":"https://api.github.com/users/selcuk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/selcuk/subscriptions","organizations_url":"https://api.github.com/users/selcuk/orgs","repos_url":"https://api.github.com/users/selcuk/repos","events_url":"https://api.github.com/users/selcuk/events{/privacy}","received_events_url":"https://api.github.com/users/selcuk/received_events","type":"User","site_admin":false},"body":"It looks like the examples (and the whole documentation) are missing the import statements. That would undoubtedly confuse many users, for example: https://stackoverflow.com/questions/52070486/how-to-use-compositeforeignkey-in-a-model/52070747","created_at":"2018-10-03T13:36:29Z","updated_at":"2018-10-03T13:36:29Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/onysos/django-composite-foreignkey/pulls/17/commits","review_comments_url":"https://api.github.com/repos/onysos/django-composite-foreignkey/pulls/17/comments","review_comment_url":"https://api.github.com/repos/onysos/django-composite-foreignkey/pulls/comments{/number}","comments_url":"https://api.github.com/repos/onysos/django-composite-foreignkey/issues/17/comments","statuses_url":"https://api.github.com/repos/onysos/django-composite-foreignkey/statuses/a6079b987155046b7db2dfd38cfc136014f1e7c7","head":{"label":"selcuk:patch-1","ref":"patch-1","sha":"a6079b987155046b7db2dfd38cfc136014f1e7c7","user":{"login":"selcuk","id":937072,"node_id":"MDQ6VXNlcjkzNzA3Mg==","avatar_url":"https://avatars1.githubusercontent.com/u/937072?v=4","gravatar_id":"","url":"https://api.github.com/users/selcuk","html_url":"https://github.com/selcuk","followers_url":"https://api.github.com/users/selcuk/followers","following_url":"https://api.github.com/users/selcuk/following{/other_user}","gists_url":"https://api.github.com/users/selcuk/gists{/gist_id}","starred_url":"https://api.github.com/users/selcuk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/selcuk/subscriptions","organizations_url":"https://api.github.com/users/selcuk/orgs","repos_url":"https://api.github.com/users/selcuk/repos","events_url":"https://api.github.com/users/selcuk/events{/privacy}","received_events_url":"https://api.github.com/users/selcuk/received_events","type":"User","site_admin":false},"repo":{"id":151417859,"node_id":"MDEwOlJlcG9zaXRvcnkxNTE0MTc4NTk=","name":"django-composite-foreignkey","full_name":"selcuk/django-composite-foreignkey","private":false,"owner":{"login":"selcuk","id":937072,"node_id":"MDQ6VXNlcjkzNzA3Mg==","avatar_url":"https://avatars1.githubusercontent.com/u/937072?v=4","gravatar_id":"","url":"https://api.github.com/users/selcuk","html_url":"https://github.com/selcuk","followers_url":"https://api.github.com/users/selcuk/followers","following_url":"https://api.github.com/users/selcuk/following{/other_user}","gists_url":"https://api.github.com/users/selcuk/gists{/gist_id}","starred_url":"https://api.github.com/users/selcuk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/selcuk/subscriptions","organizations_url":"https://api.github.com/users/selcuk/orgs","repos_url":"https://api.github.com/users/selcuk/repos","events_url":"https://api.github.com/users/selcuk/events{/privacy}","received_events_url":"https://api.github.com/users/selcuk/received_events","type":"User","site_admin":false},"html_url":"https://github.com/selcuk/django-composite-foreignkey","description":"allow to create a django foreignkey that don't link with pk of other model, but with multi column matching local model columns or fixed values.","fork":true,"url":"https://api.github.com/repos/selcuk/django-composite-foreignkey","forks_url":"https://api.github.com/repos/selcuk/django-composite-foreignkey/forks","keys_url":"https://api.github.com/repos/selcuk/django-composite-foreignkey/keys{/key_id}","collaborators_url":"https://api.github.com/repos/selcuk/django-composite-foreignkey/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/selcuk/django-composite-foreignkey/teams","hooks_url":"https://api.github.com/repos/selcuk/django-composite-foreignkey/hooks","issue_events_url":"https://api.github.com/repos/selcuk/django-composite-foreignkey/issues/events{/number}","events_url":"https://api.github.com/repos/selcuk/django-composite-foreignkey/events","assignees_url":"https://api.github.com/repos/selcuk/django-composite-foreignkey/assignees{/user}","branches_url":"https://api.github.com/repos/selcuk/django-composite-foreignkey/branches{/branch}","tags_url":"https://api.github.com/repos/selcuk/django-composite-foreignkey/tags","blobs_url":"https://api.github.com/repos/selcuk/django-composite-foreignkey/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/selcuk/django-composite-foreignkey/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/selcuk/django-composite-foreignkey/git/refs{/sha}","trees_url":"https://api.github.com/repos/selcuk/django-composite-foreignkey/git/trees{/sha}","statuses_url":"https://api.github.com/repos/selcuk/django-composite-foreignkey/statuses/{sha}","languages_url":"https://api.github.com/repos/selcuk/django-composite-foreignkey/languages","stargazers_url":"https://api.github.com/repos/selcuk/django-composite-foreignkey/stargazers","contributors_url":"https://api.github.com/repos/selcuk/django-composite-foreignkey/contributors","subscribers_url":"https://api.github.com/repos/selcuk/django-composite-foreignkey/subscribers","subscription_url":"https://api.github.com/repos/selcuk/django-composite-foreignkey/subscription","commits_url":"https://api.github.com/repos/selcuk/django-composite-foreignkey/commits{/sha}","git_commits_url":"https://api.github.com/repos/selcuk/django-composite-foreignkey/git/commits{/sha}","comments_url":"https://api.github.com/repos/selcuk/django-composite-foreignkey/comments{/number}","issue_comment_url":"https://api.github.com/repos/selcuk/django-composite-foreignkey/issues/comments{/number}","contents_url":"https://api.github.com/repos/selcuk/django-composite-foreignkey/contents/{+path}","compare_url":"https://api.github.com/repos/selcuk/django-composite-foreignkey/compare/{base}...{head}","merges_url":"https://api.github.com/repos/selcuk/django-composite-foreignkey/merges","archive_url":"https://api.github.com/repos/selcuk/django-composite-foreignkey/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/selcuk/django-composite-foreignkey/downloads","issues_url":"https://api.github.com/repos/selcuk/django-composite-foreignkey/issues{/number}","pulls_url":"https://api.github.com/repos/selcuk/django-composite-foreignkey/pulls{/number}","milestones_url":"https://api.github.com/repos/selcuk/django-composite-foreignkey/milestones{/number}","notifications_url":"https://api.github.com/repos/selcuk/django-composite-foreignkey/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/selcuk/django-composite-foreignkey/labels{/name}","releases_url":"https://api.github.com/repos/selcuk/django-composite-foreignkey/releases{/id}","deployments_url":"https://api.github.com/repos/selcuk/django-composite-foreignkey/deployments","created_at":"2018-10-03T13:33:33Z","updated_at":"2018-10-03T13:33:36Z","pushed_at":"2018-10-03T13:36:14Z","git_url":"git://github.com/selcuk/django-composite-foreignkey.git","ssh_url":"git@github.com:selcuk/django-composite-foreignkey.git","clone_url":"https://github.com/selcuk/django-composite-foreignkey.git","svn_url":"https://github.com/selcuk/django-composite-foreignkey","homepage":null,"size":96,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"gpl-3.0","name":"GNU General Public License v3.0","spdx_id":"GPL-3.0","url":"https://api.github.com/licenses/gpl-3.0","node_id":"MDc6TGljZW5zZTk="},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"onysos:master","ref":"master","sha":"307c2a077ef273ba899cfa1d32dce7ea3f83e1db","user":{"login":"onysos","id":3406733,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM0MDY3MzM=","avatar_url":"https://avatars3.githubusercontent.com/u/3406733?v=4","gravatar_id":"","url":"https://api.github.com/users/onysos","html_url":"https://github.com/onysos","followers_url":"https://api.github.com/users/onysos/followers","following_url":"https://api.github.com/users/onysos/following{/other_user}","gists_url":"https://api.github.com/users/onysos/gists{/gist_id}","starred_url":"https://api.github.com/users/onysos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/onysos/subscriptions","organizations_url":"https://api.github.com/users/onysos/orgs","repos_url":"https://api.github.com/users/onysos/repos","events_url":"https://api.github.com/users/onysos/events{/privacy}","received_events_url":"https://api.github.com/users/onysos/received_events","type":"Organization","site_admin":false},"repo":{"id":55063677,"node_id":"MDEwOlJlcG9zaXRvcnk1NTA2MzY3Nw==","name":"django-composite-foreignkey","full_name":"onysos/django-composite-foreignkey","private":false,"owner":{"login":"onysos","id":3406733,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM0MDY3MzM=","avatar_url":"https://avatars3.githubusercontent.com/u/3406733?v=4","gravatar_id":"","url":"https://api.github.com/users/onysos","html_url":"https://github.com/onysos","followers_url":"https://api.github.com/users/onysos/followers","following_url":"https://api.github.com/users/onysos/following{/other_user}","gists_url":"https://api.github.com/users/onysos/gists{/gist_id}","starred_url":"https://api.github.com/users/onysos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/onysos/subscriptions","organizations_url":"https://api.github.com/users/onysos/orgs","repos_url":"https://api.github.com/users/onysos/repos","events_url":"https://api.github.com/users/onysos/events{/privacy}","received_events_url":"https://api.github.com/users/onysos/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/onysos/django-composite-foreignkey","description":"allow to create a django foreignkey that don't link with pk of other model, but with multi column matching local model columns or fixed values.","fork":false,"url":"https://api.github.com/repos/onysos/django-composite-foreignkey","forks_url":"https://api.github.com/repos/onysos/django-composite-foreignkey/forks","keys_url":"https://api.github.com/repos/onysos/django-composite-foreignkey/keys{/key_id}","collaborators_url":"https://api.github.com/repos/onysos/django-composite-foreignkey/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/onysos/django-composite-foreignkey/teams","hooks_url":"https://api.github.com/repos/onysos/django-composite-foreignkey/hooks","issue_events_url":"https://api.github.com/repos/onysos/django-composite-foreignkey/issues/events{/number}","events_url":"https://api.github.com/repos/onysos/django-composite-foreignkey/events","assignees_url":"https://api.github.com/repos/onysos/django-composite-foreignkey/assignees{/user}","branches_url":"https://api.github.com/repos/onysos/django-composite-foreignkey/branches{/branch}","tags_url":"https://api.github.com/repos/onysos/django-composite-foreignkey/tags","blobs_url":"https://api.github.com/repos/onysos/django-composite-foreignkey/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/onysos/django-composite-foreignkey/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/onysos/django-composite-foreignkey/git/refs{/sha}","trees_url":"https://api.github.com/repos/onysos/django-composite-foreignkey/git/trees{/sha}","statuses_url":"https://api.github.com/repos/onysos/django-composite-foreignkey/statuses/{sha}","languages_url":"https://api.github.com/repos/onysos/django-composite-foreignkey/languages","stargazers_url":"https://api.github.com/repos/onysos/django-composite-foreignkey/stargazers","contributors_url":"https://api.github.com/repos/onysos/django-composite-foreignkey/contributors","subscribers_url":"https://api.github.com/repos/onysos/django-composite-foreignkey/subscribers","subscription_url":"https://api.github.com/repos/onysos/django-composite-foreignkey/subscription","commits_url":"https://api.github.com/repos/onysos/django-composite-foreignkey/commits{/sha}","git_commits_url":"https://api.github.com/repos/onysos/django-composite-foreignkey/git/commits{/sha}","comments_url":"https://api.github.com/repos/onysos/django-composite-foreignkey/comments{/number}","issue_comment_url":"https://api.github.com/repos/onysos/django-composite-foreignkey/issues/comments{/number}","contents_url":"https://api.github.com/repos/onysos/django-composite-foreignkey/contents/{+path}","compare_url":"https://api.github.com/repos/onysos/django-composite-foreignkey/compare/{base}...{head}","merges_url":"https://api.github.com/repos/onysos/django-composite-foreignkey/merges","archive_url":"https://api.github.com/repos/onysos/django-composite-foreignkey/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/onysos/django-composite-foreignkey/downloads","issues_url":"https://api.github.com/repos/onysos/django-composite-foreignkey/issues{/number}","pulls_url":"https://api.github.com/repos/onysos/django-composite-foreignkey/pulls{/number}","milestones_url":"https://api.github.com/repos/onysos/django-composite-foreignkey/milestones{/number}","notifications_url":"https://api.github.com/repos/onysos/django-composite-foreignkey/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/onysos/django-composite-foreignkey/labels{/name}","releases_url":"https://api.github.com/repos/onysos/django-composite-foreignkey/releases{/id}","deployments_url":"https://api.github.com/repos/onysos/django-composite-foreignkey/deployments","created_at":"2016-03-30T13:05:47Z","updated_at":"2018-09-26T18:28:41Z","pushed_at":"2018-08-13T08:32:16Z","git_url":"git://github.com/onysos/django-composite-foreignkey.git","ssh_url":"git@github.com:onysos/django-composite-foreignkey.git","clone_url":"https://github.com/onysos/django-composite-foreignkey.git","svn_url":"https://github.com/onysos/django-composite-foreignkey","homepage":null,"size":96,"stargazers_count":27,"watchers_count":27,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":9,"mirror_url":null,"archived":false,"open_issues_count":3,"license":{"key":"gpl-3.0","name":"GNU General Public License v3.0","spdx_id":"GPL-3.0","url":"https://api.github.com/licenses/gpl-3.0","node_id":"MDc6TGljZW5zZTk="},"forks":9,"open_issues":3,"watchers":27,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/onysos/django-composite-foreignkey/pulls/17"},"html":{"href":"https://github.com/onysos/django-composite-foreignkey/pull/17"},"issue":{"href":"https://api.github.com/repos/onysos/django-composite-foreignkey/issues/17"},"comments":{"href":"https://api.github.com/repos/onysos/django-composite-foreignkey/issues/17/comments"},"review_comments":{"href":"https://api.github.com/repos/onysos/django-composite-foreignkey/pulls/17/comments"},"review_comment":{"href":"https://api.github.com/repos/onysos/django-composite-foreignkey/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/onysos/django-composite-foreignkey/pulls/17/commits"},"statuses":{"href":"https://api.github.com/repos/onysos/django-composite-foreignkey/statuses/a6079b987155046b7db2dfd38cfc136014f1e7c7"}},"author_association":"NONE","merged":false,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":true,"commits":1,"additions":6,"deletions":0,"changed_files":1}}
{"actor":{"display_login":"selcuk"}}