{"action":"opened","issue":{"url":"https://api.github.com/repos/tomchristie/django-rest-framework/issues/4739","repository_url":"https://api.github.com/repos/tomchristie/django-rest-framework","labels_url":"https://api.github.com/repos/tomchristie/django-rest-framework/issues/4739/labels{/name}","comments_url":"https://api.github.com/repos/tomchristie/django-rest-framework/issues/4739/comments","events_url":"https://api.github.com/repos/tomchristie/django-rest-framework/issues/4739/events","html_url":"https://github.com/tomchristie/django-rest-framework/issues/4739","id":193467561,"number":4739,"title":"'is_valid' return Null data at Writable Nested ModelSerializer ","user":{"login":"HyunSol","id":22088047,"avatar_url":"https://avatars.githubusercontent.com/u/22088047?v=3","gravatar_id":"","url":"https://api.github.com/users/HyunSol","html_url":"https://github.com/HyunSol","followers_url":"https://api.github.com/users/HyunSol/followers","following_url":"https://api.github.com/users/HyunSol/following{/other_user}","gists_url":"https://api.github.com/users/HyunSol/gists{/gist_id}","starred_url":"https://api.github.com/users/HyunSol/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HyunSol/subscriptions","organizations_url":"https://api.github.com/users/HyunSol/orgs","repos_url":"https://api.github.com/users/HyunSol/repos","events_url":"https://api.github.com/users/HyunSol/events{/privacy}","received_events_url":"https://api.github.com/users/HyunSol/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-12-05T11:00:57Z","updated_at":"2016-12-05T11:00:57Z","closed_at":null,"body":"## Checklist\r\n\r\n- [x] I have verified that that issue exists against the `master` branch of Django REST framework.   \r\nYes I tested with the same version as the master, and I have identified the same problematic code.    \r\n- [x] I have searched for similar issues in both open and closed tickets and cannot find a duplicate.\r\n- [x] This is not a usage question. (Those should be directed to the [discussion group](https://groups.google.com/forum/#!forum/django-rest-framework) instead.)\r\n- [x] This cannot be dealt with as a third party library. (We prefer new functionality to be [in the form of third party libraries](http://www.django-rest-framework.org/topics/third-party-resources/#about-third-party-packages) where possible.)\r\n- [x] I have reduced the issue to the simplest possible case.\r\n- [ ] I have included a failing test as a pull request. (If you are unable to do so we can still accept the issue.)\r\n\r\n## Steps to reproduce\r\n```\r\nclass CommentSerializer(serializers.ModelSerializer):\r\n    class Meta:\r\n        model = Comment\r\n        fields = ('pk', 'comment', 'created_date')\r\n\r\nclass PhotoSerializer(serializers.ModelSerializer):\r\n    class Meta:\r\n        model = Photo\r\n        fields = ('pk', 'photo')\r\n\r\nclass PostSerializer(serializers.ModelSerializer):\r\n    photos = PhotoSerializer(many=True, source='photo_set')\r\n    comment = CommentSerializer(many=True, source='comment_set')\r\n\r\n    class Meta:\r\n        model = Post\r\n        fields = ('content', 'photos', 'comment')\r\n\r\n    def create(self, validated_data):\r\n          . . . . .\r\n```\r\n\r\n## Expected behavior\r\n\r\nvalidated_data is {'content': 'validated_value', 'photo_set': 'validated_value', 'comment_set': 'validated_value'}\r\n\r\n\r\n## Actual behavior\r\n\r\nvalidated_data {'content': 'validated_value', 'photo_set': [], 'comment_set': []}\r\n\r\n"}}
{"actor":{"display_login":"HyunSol"}}