{"action":"opened","number":14,"pull_request":{"url":"https://api.github.com/repos/uranusjr/django-tutorial-for-programmers/pulls/14","id":32592662,"html_url":"https://github.com/uranusjr/django-tutorial-for-programmers/pull/14","diff_url":"https://github.com/uranusjr/django-tutorial-for-programmers/pull/14.diff","patch_url":"https://github.com/uranusjr/django-tutorial-for-programmers/pull/14.patch","issue_url":"https://api.github.com/repos/uranusjr/django-tutorial-for-programmers/issues/14","number":14,"state":"open","locked":false,"title":"Explicitly pass fields to modelform_factory","user":{"login":"ccwang002","id":1544283,"avatar_url":"https://avatars.githubusercontent.com/u/1544283?v=3","gravatar_id":"","url":"https://api.github.com/users/ccwang002","html_url":"https://github.com/ccwang002","followers_url":"https://api.github.com/users/ccwang002/followers","following_url":"https://api.github.com/users/ccwang002/following{/other_user}","gists_url":"https://api.github.com/users/ccwang002/gists{/gist_id}","starred_url":"https://api.github.com/users/ccwang002/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ccwang002/subscriptions","organizations_url":"https://api.github.com/users/ccwang002/orgs","repos_url":"https://api.github.com/users/ccwang002/repos","events_url":"https://api.github.com/users/ccwang002/events{/privacy}","received_events_url":"https://api.github.com/users/ccwang002/received_events","type":"User","site_admin":false},"body":"On Django 1.8+, using [modelform_factory][official doc] requires explicitly passing either `fields` or `exclude`.\r\n\r\n[official doc]: https://docs.djangoproject.com/en/1.8/ref/forms/models/#django.forms.models.modelform_factory","created_at":"2015-04-03T14:41:29Z","updated_at":"2015-04-03T14:41:29Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/uranusjr/django-tutorial-for-programmers/pulls/14/commits","review_comments_url":"https://api.github.com/repos/uranusjr/django-tutorial-for-programmers/pulls/14/comments","review_comment_url":"https://api.github.com/repos/uranusjr/django-tutorial-for-programmers/pulls/comments{/number}","comments_url":"https://api.github.com/repos/uranusjr/django-tutorial-for-programmers/issues/14/comments","statuses_url":"https://api.github.com/repos/uranusjr/django-tutorial-for-programmers/statuses/ef1dc45bd79408e6e3e859b1939bbaf839d7f8c0","head":{"label":"ccwang002:fix-django18-modelform-factory","ref":"fix-django18-modelform-factory","sha":"ef1dc45bd79408e6e3e859b1939bbaf839d7f8c0","user":{"login":"ccwang002","id":1544283,"avatar_url":"https://avatars.githubusercontent.com/u/1544283?v=3","gravatar_id":"","url":"https://api.github.com/users/ccwang002","html_url":"https://github.com/ccwang002","followers_url":"https://api.github.com/users/ccwang002/followers","following_url":"https://api.github.com/users/ccwang002/following{/other_user}","gists_url":"https://api.github.com/users/ccwang002/gists{/gist_id}","starred_url":"https://api.github.com/users/ccwang002/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ccwang002/subscriptions","organizations_url":"https://api.github.com/users/ccwang002/orgs","repos_url":"https://api.github.com/users/ccwang002/repos","events_url":"https://api.github.com/users/ccwang002/events{/privacy}","received_events_url":"https://api.github.com/users/ccwang002/received_events","type":"User","site_admin":false},"repo":{"id":32914320,"name":"django-tutorial-for-programmers","full_name":"ccwang002/django-tutorial-for-programmers","owner":{"login":"ccwang002","id":1544283,"avatar_url":"https://avatars.githubusercontent.com/u/1544283?v=3","gravatar_id":"","url":"https://api.github.com/users/ccwang002","html_url":"https://github.com/ccwang002","followers_url":"https://api.github.com/users/ccwang002/followers","following_url":"https://api.github.com/users/ccwang002/following{/other_user}","gists_url":"https://api.github.com/users/ccwang002/gists{/gist_id}","starred_url":"https://api.github.com/users/ccwang002/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ccwang002/subscriptions","organizations_url":"https://api.github.com/users/ccwang002/orgs","repos_url":"https://api.github.com/users/ccwang002/repos","events_url":"https://api.github.com/users/ccwang002/events{/privacy}","received_events_url":"https://api.github.com/users/ccwang002/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ccwang002/django-tutorial-for-programmers","description":"Chapter draft and example code for the tutorial","fork":true,"url":"https://api.github.com/repos/ccwang002/django-tutorial-for-programmers","forks_url":"https://api.github.com/repos/ccwang002/django-tutorial-for-programmers/forks","keys_url":"https://api.github.com/repos/ccwang002/django-tutorial-for-programmers/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ccwang002/django-tutorial-for-programmers/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ccwang002/django-tutorial-for-programmers/teams","hooks_url":"https://api.github.com/repos/ccwang002/django-tutorial-for-programmers/hooks","issue_events_url":"https://api.github.com/repos/ccwang002/django-tutorial-for-programmers/issues/events{/number}","events_url":"https://api.github.com/repos/ccwang002/django-tutorial-for-programmers/events","assignees_url":"https://api.github.com/repos/ccwang002/django-tutorial-for-programmers/assignees{/user}","branches_url":"https://api.github.com/repos/ccwang002/django-tutorial-for-programmers/branches{/branch}","tags_url":"https://api.github.com/repos/ccwang002/django-tutorial-for-programmers/tags","blobs_url":"https://api.github.com/repos/ccwang002/django-tutorial-for-programmers/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ccwang002/django-tutorial-for-programmers/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ccwang002/django-tutorial-for-programmers/git/refs{/sha}","trees_url":"https://api.github.com/repos/ccwang002/django-tutorial-for-programmers/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ccwang002/django-tutorial-for-programmers/statuses/{sha}","languages_url":"https://api.github.com/repos/ccwang002/django-tutorial-for-programmers/languages","stargazers_url":"https://api.github.com/repos/ccwang002/django-tutorial-for-programmers/stargazers","contributors_url":"https://api.github.com/repos/ccwang002/django-tutorial-for-programmers/contributors","subscribers_url":"https://api.github.com/repos/ccwang002/django-tutorial-for-programmers/subscribers","subscription_url":"https://api.github.com/repos/ccwang002/django-tutorial-for-programmers/subscription","commits_url":"https://api.github.com/repos/ccwang002/django-tutorial-for-programmers/commits{/sha}","git_commits_url":"https://api.github.com/repos/ccwang002/django-tutorial-for-programmers/git/commits{/sha}","comments_url":"https://api.github.com/repos/ccwang002/django-tutorial-for-programmers/comments{/number}","issue_comment_url":"https://api.github.com/repos/ccwang002/django-tutorial-for-programmers/issues/comments{/number}","contents_url":"https://api.github.com/repos/ccwang002/django-tutorial-for-programmers/contents/{+path}","compare_url":"https://api.github.com/repos/ccwang002/django-tutorial-for-programmers/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ccwang002/django-tutorial-for-programmers/merges","archive_url":"https://api.github.com/repos/ccwang002/django-tutorial-for-programmers/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ccwang002/django-tutorial-for-programmers/downloads","issues_url":"https://api.github.com/repos/ccwang002/django-tutorial-for-programmers/issues{/number}","pulls_url":"https://api.github.com/repos/ccwang002/django-tutorial-for-programmers/pulls{/number}","milestones_url":"https://api.github.com/repos/ccwang002/django-tutorial-for-programmers/milestones{/number}","notifications_url":"https://api.github.com/repos/ccwang002/django-tutorial-for-programmers/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ccwang002/django-tutorial-for-programmers/labels{/name}","releases_url":"https://api.github.com/repos/ccwang002/django-tutorial-for-programmers/releases{/id}","created_at":"2015-03-26T07:51:14Z","updated_at":"2015-04-01T03:31:46Z","pushed_at":"2015-04-03T14:39:41Z","git_url":"git://github.com/ccwang002/django-tutorial-for-programmers.git","ssh_url":"git@github.com:ccwang002/django-tutorial-for-programmers.git","clone_url":"https://github.com/ccwang002/django-tutorial-for-programmers.git","svn_url":"https://github.com/ccwang002/django-tutorial-for-programmers","homepage":null,"size":629,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":true,"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":"uranusjr:master","ref":"master","sha":"de519d05f01ea7ad9314434bd8245ca4b9a549b6","user":{"login":"uranusjr","id":605277,"avatar_url":"https://avatars.githubusercontent.com/u/605277?v=3","gravatar_id":"","url":"https://api.github.com/users/uranusjr","html_url":"https://github.com/uranusjr","followers_url":"https://api.github.com/users/uranusjr/followers","following_url":"https://api.github.com/users/uranusjr/following{/other_user}","gists_url":"https://api.github.com/users/uranusjr/gists{/gist_id}","starred_url":"https://api.github.com/users/uranusjr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/uranusjr/subscriptions","organizations_url":"https://api.github.com/users/uranusjr/orgs","repos_url":"https://api.github.com/users/uranusjr/repos","events_url":"https://api.github.com/users/uranusjr/events{/privacy}","received_events_url":"https://api.github.com/users/uranusjr/received_events","type":"User","site_admin":false},"repo":{"id":24833035,"name":"django-tutorial-for-programmers","full_name":"uranusjr/django-tutorial-for-programmers","owner":{"login":"uranusjr","id":605277,"avatar_url":"https://avatars.githubusercontent.com/u/605277?v=3","gravatar_id":"","url":"https://api.github.com/users/uranusjr","html_url":"https://github.com/uranusjr","followers_url":"https://api.github.com/users/uranusjr/followers","following_url":"https://api.github.com/users/uranusjr/following{/other_user}","gists_url":"https://api.github.com/users/uranusjr/gists{/gist_id}","starred_url":"https://api.github.com/users/uranusjr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/uranusjr/subscriptions","organizations_url":"https://api.github.com/users/uranusjr/orgs","repos_url":"https://api.github.com/users/uranusjr/repos","events_url":"https://api.github.com/users/uranusjr/events{/privacy}","received_events_url":"https://api.github.com/users/uranusjr/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/uranusjr/django-tutorial-for-programmers","description":"Chapter draft and example code for the tutorial","fork":false,"url":"https://api.github.com/repos/uranusjr/django-tutorial-for-programmers","forks_url":"https://api.github.com/repos/uranusjr/django-tutorial-for-programmers/forks","keys_url":"https://api.github.com/repos/uranusjr/django-tutorial-for-programmers/keys{/key_id}","collaborators_url":"https://api.github.com/repos/uranusjr/django-tutorial-for-programmers/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/uranusjr/django-tutorial-for-programmers/teams","hooks_url":"https://api.github.com/repos/uranusjr/django-tutorial-for-programmers/hooks","issue_events_url":"https://api.github.com/repos/uranusjr/django-tutorial-for-programmers/issues/events{/number}","events_url":"https://api.github.com/repos/uranusjr/django-tutorial-for-programmers/events","assignees_url":"https://api.github.com/repos/uranusjr/django-tutorial-for-programmers/assignees{/user}","branches_url":"https://api.github.com/repos/uranusjr/django-tutorial-for-programmers/branches{/branch}","tags_url":"https://api.github.com/repos/uranusjr/django-tutorial-for-programmers/tags","blobs_url":"https://api.github.com/repos/uranusjr/django-tutorial-for-programmers/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/uranusjr/django-tutorial-for-programmers/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/uranusjr/django-tutorial-for-programmers/git/refs{/sha}","trees_url":"https://api.github.com/repos/uranusjr/django-tutorial-for-programmers/git/trees{/sha}","statuses_url":"https://api.github.com/repos/uranusjr/django-tutorial-for-programmers/statuses/{sha}","languages_url":"https://api.github.com/repos/uranusjr/django-tutorial-for-programmers/languages","stargazers_url":"https://api.github.com/repos/uranusjr/django-tutorial-for-programmers/stargazers","contributors_url":"https://api.github.com/repos/uranusjr/django-tutorial-for-programmers/contributors","subscribers_url":"https://api.github.com/repos/uranusjr/django-tutorial-for-programmers/subscribers","subscription_url":"https://api.github.com/repos/uranusjr/django-tutorial-for-programmers/subscription","commits_url":"https://api.github.com/repos/uranusjr/django-tutorial-for-programmers/commits{/sha}","git_commits_url":"https://api.github.com/repos/uranusjr/django-tutorial-for-programmers/git/commits{/sha}","comments_url":"https://api.github.com/repos/uranusjr/django-tutorial-for-programmers/comments{/number}","issue_comment_url":"https://api.github.com/repos/uranusjr/django-tutorial-for-programmers/issues/comments{/number}","contents_url":"https://api.github.com/repos/uranusjr/django-tutorial-for-programmers/contents/{+path}","compare_url":"https://api.github.com/repos/uranusjr/django-tutorial-for-programmers/compare/{base}...{head}","merges_url":"https://api.github.com/repos/uranusjr/django-tutorial-for-programmers/merges","archive_url":"https://api.github.com/repos/uranusjr/django-tutorial-for-programmers/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/uranusjr/django-tutorial-for-programmers/downloads","issues_url":"https://api.github.com/repos/uranusjr/django-tutorial-for-programmers/issues{/number}","pulls_url":"https://api.github.com/repos/uranusjr/django-tutorial-for-programmers/pulls{/number}","milestones_url":"https://api.github.com/repos/uranusjr/django-tutorial-for-programmers/milestones{/number}","notifications_url":"https://api.github.com/repos/uranusjr/django-tutorial-for-programmers/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/uranusjr/django-tutorial-for-programmers/labels{/name}","releases_url":"https://api.github.com/repos/uranusjr/django-tutorial-for-programmers/releases{/id}","created_at":"2014-10-06T03:27:11Z","updated_at":"2015-03-30T03:33:10Z","pushed_at":"2015-03-30T03:33:10Z","git_url":"git://github.com/uranusjr/django-tutorial-for-programmers.git","ssh_url":"git@github.com:uranusjr/django-tutorial-for-programmers.git","clone_url":"https://github.com/uranusjr/django-tutorial-for-programmers.git","svn_url":"https://github.com/uranusjr/django-tutorial-for-programmers","homepage":null,"size":979,"stargazers_count":40,"watchers_count":40,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":17,"mirror_url":null,"open_issues_count":1,"forks":17,"open_issues":1,"watchers":40,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/uranusjr/django-tutorial-for-programmers/pulls/14"},"html":{"href":"https://github.com/uranusjr/django-tutorial-for-programmers/pull/14"},"issue":{"href":"https://api.github.com/repos/uranusjr/django-tutorial-for-programmers/issues/14"},"comments":{"href":"https://api.github.com/repos/uranusjr/django-tutorial-for-programmers/issues/14/comments"},"review_comments":{"href":"https://api.github.com/repos/uranusjr/django-tutorial-for-programmers/pulls/14/comments"},"review_comment":{"href":"https://api.github.com/repos/uranusjr/django-tutorial-for-programmers/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/uranusjr/django-tutorial-for-programmers/pulls/14/commits"},"statuses":{"href":"https://api.github.com/repos/uranusjr/django-tutorial-for-programmers/statuses/ef1dc45bd79408e6e3e859b1939bbaf839d7f8c0"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":5,"deletions":4,"changed_files":1}}