GitHub PullRequestEvent at 2014-04-13 02:34:15
Repository: django-rest-framework
Actor: rolandkal
Payload: {"action":"opened","number":1528,"pull_request":{"url":"https://api.github.com/repos/tomchristie/django-rest-framework/pulls/1528","id":14690816,"html_url":"https://github.com/tomchristie/django-rest-framework/pull/1528","diff_url":"https://github.com/tomchristie/django-rest-framework/pull/1528.diff","patch_url":"https://github.com/tomchristie/django-rest-framework/pull/1528.patch","issue_url":"https://api.github.com/repos/tomchristie/django-rest-framework/issues/1528","number":1528,"state":"open","title":"Added null value for list.","user":{"login":"rolandkal","id":5774580,"avatar_url":"https://avatars.githubusercontent.com/u/5774580?","gravatar_id":"d03af4f78fccb41ae4421e61b21d998b","url":"https://api.github.com/users/rolandkal","html_url":"https://github.com/rolandkal","followers_url":"https://api.github.com/users/rolandkal/followers","following_url":"https://api.github.com/users/rolandkal/following{/other_user}","gists_url":"https://api.github.com/users/rolandkal/gists{/gist_id}","starred_url":"https://api.github.com/users/rolandkal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rolandkal/subscriptions","organizations_url":"https://api.github.com/users/rolandkal/orgs","repos_url":"https://api.github.com/users/rolandkal/repos","events_url":"https://api.github.com/users/rolandkal/events{/privacy}","received_events_url":"https://api.github.com/users/rolandkal/received_events","type":"User","site_admin":false},"body":"No ValidationError raised, If  \"many=True\" and \"required=True\" are set on PrimaryKerRelatedField.\r\n\r\n````python\r\nclass CompanySerializer(serializers.ModelSerializer):\r\n    groups = serializer.PrimaryKeyRelatedField(many=True, required=True)\r\n    class Meta:\r\n        model = Company\r\n````\t\r\n\r\nThese PUT requests should raise a ValidationError as no groups defined.\r\n````\r\n{\"name\":\"Company Name Ltd.\",\"groups\":[]}\r\n{\"name\":\"Company Name Ltd.\"}\r\n````\r\n\r\nExpected error: \r\n````\r\n{\"groups\": [\"This field is required.\"]}\r\n````","created_at":"2014-04-13T02:34:15Z","updated_at":"2014-04-13T02:34:15Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/tomchristie/django-rest-framework/pulls/1528/commits","review_comments_url":"https://api.github.com/repos/tomchristie/django-rest-framework/pulls/1528/comments","review_comment_url":"https://api.github.com/repos/tomchristie/django-rest-framework/pulls/comments/{number}","comments_url":"https://api.github.com/repos/tomchristie/django-rest-framework/issues/1528/comments","statuses_url":"https://api.github.com/repos/tomchristie/django-rest-framework/statuses/a6465186fde91b15b294f7e7aa0b2ce5a7c02c2b","head":{"label":"rolandkal:patch-1","ref":"patch-1","sha":"a6465186fde91b15b294f7e7aa0b2ce5a7c02c2b","user":{"login":"rolandkal","id":5774580,"avatar_url":"https://avatars.githubusercontent.com/u/5774580?","gravatar_id":"d03af4f78fccb41ae4421e61b21d998b","url":"https://api.github.com/users/rolandkal","html_url":"https://github.com/rolandkal","followers_url":"https://api.github.com/users/rolandkal/followers","following_url":"https://api.github.com/users/rolandkal/following{/other_user}","gists_url":"https://api.github.com/users/rolandkal/gists{/gist_id}","starred_url":"https://api.github.com/users/rolandkal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rolandkal/subscriptions","organizations_url":"https://api.github.com/users/rolandkal/orgs","repos_url":"https://api.github.com/users/rolandkal/repos","events_url":"https://api.github.com/users/rolandkal/events{/privacy}","received_events_url":"https://api.github.com/users/rolandkal/received_events","type":"User","site_admin":false},"repo":{"id":18719364,"name":"django-rest-framework","full_name":"rolandkal/django-rest-framework","owner":{"login":"rolandkal","id":5774580,"avatar_url":"https://avatars.githubusercontent.com/u/5774580?","gravatar_id":"d03af4f78fccb41ae4421e61b21d998b","url":"https://api.github.com/users/rolandkal","html_url":"https://github.com/rolandkal","followers_url":"https://api.github.com/users/rolandkal/followers","following_url":"https://api.github.com/users/rolandkal/following{/other_user}","gists_url":"https://api.github.com/users/rolandkal/gists{/gist_id}","starred_url":"https://api.github.com/users/rolandkal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rolandkal/subscriptions","organizations_url":"https://api.github.com/users/rolandkal/orgs","repos_url":"https://api.github.com/users/rolandkal/repos","events_url":"https://api.github.com/users/rolandkal/events{/privacy}","received_events_url":"https://api.github.com/users/rolandkal/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/rolandkal/django-rest-framework","description":"Awesome web-browseable Web APIs.","fork":true,"url":"https://api.github.com/repos/rolandkal/django-rest-framework","forks_url":"https://api.github.com/repos/rolandkal/django-rest-framework/forks","keys_url":"https://api.github.com/repos/rolandkal/django-rest-framework/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rolandkal/django-rest-framework/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rolandkal/django-rest-framework/teams","hooks_url":"https://api.github.com/repos/rolandkal/django-rest-framework/hooks","issue_events_url":"https://api.github.com/repos/rolandkal/django-rest-framework/issues/events{/number}","events_url":"https://api.github.com/repos/rolandkal/django-rest-framework/events","assignees_url":"https://api.github.com/repos/rolandkal/django-rest-framework/assignees{/user}","branches_url":"https://api.github.com/repos/rolandkal/django-rest-framework/branches{/branch}","tags_url":"https://api.github.com/repos/rolandkal/django-rest-framework/tags","blobs_url":"https://api.github.com/repos/rolandkal/django-rest-framework/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rolandkal/django-rest-framework/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rolandkal/django-rest-framework/git/refs{/sha}","trees_url":"https://api.github.com/repos/rolandkal/django-rest-framework/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rolandkal/django-rest-framework/statuses/{sha}","languages_url":"https://api.github.com/repos/rolandkal/django-rest-framework/languages","stargazers_url":"https://api.github.com/repos/rolandkal/django-rest-framework/stargazers","contributors_url":"https://api.github.com/repos/rolandkal/django-rest-framework/contributors","subscribers_url":"https://api.github.com/repos/rolandkal/django-rest-framework/subscribers","subscription_url":"https://api.github.com/repos/rolandkal/django-rest-framework/subscription","commits_url":"https://api.github.com/repos/rolandkal/django-rest-framework/commits{/sha}","git_commits_url":"https://api.github.com/repos/rolandkal/django-rest-framework/git/commits{/sha}","comments_url":"https://api.github.com/repos/rolandkal/django-rest-framework/comments{/number}","issue_comment_url":"https://api.github.com/repos/rolandkal/django-rest-framework/issues/comments/{number}","contents_url":"https://api.github.com/repos/rolandkal/django-rest-framework/contents/{+path}","compare_url":"https://api.github.com/repos/rolandkal/django-rest-framework/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rolandkal/django-rest-framework/merges","archive_url":"https://api.github.com/repos/rolandkal/django-rest-framework/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rolandkal/django-rest-framework/downloads","issues_url":"https://api.github.com/repos/rolandkal/django-rest-framework/issues{/number}","pulls_url":"https://api.github.com/repos/rolandkal/django-rest-framework/pulls{/number}","milestones_url":"https://api.github.com/repos/rolandkal/django-rest-framework/milestones{/number}","notifications_url":"https://api.github.com/repos/rolandkal/django-rest-framework/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rolandkal/django-rest-framework/labels{/name}","releases_url":"https://api.github.com/repos/rolandkal/django-rest-framework/releases{/id}","created_at":"2014-04-13T02:06:41Z","updated_at":"2014-04-13T02:34:15Z","pushed_at":"2014-04-13T02:16:22Z","git_url":"git://github.com/rolandkal/django-rest-framework.git","ssh_url":"git@github.com:rolandkal/django-rest-framework.git","clone_url":"https://github.com/rolandkal/django-rest-framework.git","svn_url":"https://github.com/rolandkal/django-rest-framework","homepage":"www.django-rest-framework.org","size":21514,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master","master_branch":"master"}},"base":{"label":"tomchristie:master","ref":"master","sha":"93b9245b8714287a440023451ff7880a2f6e5b32","user":{"login":"tomchristie","id":647359,"avatar_url":"https://avatars.githubusercontent.com/u/647359?","gravatar_id":"c498214bc28f28b61212169dcc372fbf","url":"https://api.github.com/users/tomchristie","html_url":"https://github.com/tomchristie","followers_url":"https://api.github.com/users/tomchristie/followers","following_url":"https://api.github.com/users/tomchristie/following{/other_user}","gists_url":"https://api.github.com/users/tomchristie/gists{/gist_id}","starred_url":"https://api.github.com/users/tomchristie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tomchristie/subscriptions","organizations_url":"https://api.github.com/users/tomchristie/orgs","repos_url":"https://api.github.com/users/tomchristie/repos","events_url":"https://api.github.com/users/tomchristie/events{/privacy}","received_events_url":"https://api.github.com/users/tomchristie/received_events","type":"User","site_admin":false},"repo":{"id":1431547,"name":"django-rest-framework","full_name":"tomchristie/django-rest-framework","owner":{"login":"tomchristie","id":647359,"avatar_url":"https://avatars.githubusercontent.com/u/647359?","gravatar_id":"c498214bc28f28b61212169dcc372fbf","url":"https://api.github.com/users/tomchristie","html_url":"https://github.com/tomchristie","followers_url":"https://api.github.com/users/tomchristie/followers","following_url":"https://api.github.com/users/tomchristie/following{/other_user}","gists_url":"https://api.github.com/users/tomchristie/gists{/gist_id}","starred_url":"https://api.github.com/users/tomchristie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tomchristie/subscriptions","organizations_url":"https://api.github.com/users/tomchristie/orgs","repos_url":"https://api.github.com/users/tomchristie/repos","events_url":"https://api.github.com/users/tomchristie/events{/privacy}","received_events_url":"https://api.github.com/users/tomchristie/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/tomchristie/django-rest-framework","description":"Awesome web-browseable Web APIs.","fork":false,"url":"https://api.github.com/repos/tomchristie/django-rest-framework","forks_url":"https://api.github.com/repos/tomchristie/django-rest-framework/forks","keys_url":"https://api.github.com/repos/tomchristie/django-rest-framework/keys{/key_id}","collaborators_url":"https://api.github.com/repos/tomchristie/django-rest-framework/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/tomchristie/django-rest-framework/teams","hooks_url":"https://api.github.com/repos/tomchristie/django-rest-framework/hooks","issue_events_url":"https://api.github.com/repos/tomchristie/django-rest-framework/issues/events{/number}","events_url":"https://api.github.com/repos/tomchristie/django-rest-framework/events","assignees_url":"https://api.github.com/repos/tomchristie/django-rest-framework/assignees{/user}","branches_url":"https://api.github.com/repos/tomchristie/django-rest-framework/branches{/branch}","tags_url":"https://api.github.com/repos/tomchristie/django-rest-framework/tags","blobs_url":"https://api.github.com/repos/tomchristie/django-rest-framework/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/tomchristie/django-rest-framework/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/tomchristie/django-rest-framework/git/refs{/sha}","trees_url":"https://api.github.com/repos/tomchristie/django-rest-framework/git/trees{/sha}","statuses_url":"https://api.github.com/repos/tomchristie/django-rest-framework/statuses/{sha}","languages_url":"https://api.github.com/repos/tomchristie/django-rest-framework/languages","stargazers_url":"https://api.github.com/repos/tomchristie/django-rest-framework/stargazers","contributors_url":"https://api.github.com/repos/tomchristie/django-rest-framework/contributors","subscribers_url":"https://api.github.com/repos/tomchristie/django-rest-framework/subscribers","subscription_url":"https://api.github.com/repos/tomchristie/django-rest-framework/subscription","commits_url":"https://api.github.com/repos/tomchristie/django-rest-framework/commits{/sha}","git_commits_url":"https://api.github.com/repos/tomchristie/django-rest-framework/git/commits{/sha}","comments_url":"https://api.github.com/repos/tomchristie/django-rest-framework/comments{/number}","issue_comment_url":"https://api.github.com/repos/tomchristie/django-rest-framework/issues/comments/{number}","contents_url":"https://api.github.com/repos/tomchristie/django-rest-framework/contents/{+path}","compare_url":"https://api.github.com/repos/tomchristie/django-rest-framework/compare/{base}...{head}","merges_url":"https://api.github.com/repos/tomchristie/django-rest-framework/merges","archive_url":"https://api.github.com/repos/tomchristie/django-rest-framework/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/tomchristie/django-rest-framework/downloads","issues_url":"https://api.github.com/repos/tomchristie/django-rest-framework/issues{/number}","pulls_url":"https://api.github.com/repos/tomchristie/django-rest-framework/pulls{/number}","milestones_url":"https://api.github.com/repos/tomchristie/django-rest-framework/milestones{/number}","notifications_url":"https://api.github.com/repos/tomchristie/django-rest-framework/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/tomchristie/django-rest-framework/labels{/name}","releases_url":"https://api.github.com/repos/tomchristie/django-rest-framework/releases{/id}","created_at":"2011-03-02T17:13:56Z","updated_at":"2014-04-12T22:06:48Z","pushed_at":"2014-04-12T22:06:47Z","git_url":"git://github.com/tomchristie/django-rest-framework.git","ssh_url":"git@github.com:tomchristie/django-rest-framework.git","clone_url":"https://github.com/tomchristie/django-rest-framework.git","svn_url":"https://github.com/tomchristie/django-rest-framework","homepage":"www.django-rest-framework.org","size":21514,"stargazers_count":2195,"watchers_count":2195,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"forks_count":678,"mirror_url":null,"open_issues_count":93,"forks":678,"open_issues":93,"watchers":2195,"default_branch":"master","master_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/tomchristie/django-rest-framework/pulls/1528"},"html":{"href":"https://github.com/tomchristie/django-rest-framework/pull/1528"},"issue":{"href":"https://api.github.com/repos/tomchristie/django-rest-framework/issues/1528"},"comments":{"href":"https://api.github.com/repos/tomchristie/django-rest-framework/issues/1528/comments"},"review_comments":{"href":"https://api.github.com/repos/tomchristie/django-rest-framework/pulls/1528/comments"},"review_comment":{"href":"https://api.github.com/repos/tomchristie/django-rest-framework/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/tomchristie/django-rest-framework/pulls/1528/commits"},"statuses":{"href":"https://api.github.com/repos/tomchristie/django-rest-framework/statuses/a6465186fde91b15b294f7e7aa0b2ce5a7c02c2b"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":1,"deletions":1,"changed_files":1}}