{"action":"opened","number":459,"pull_request":{"url":"https://api.github.com/repos/marcgibbons/django-rest-swagger/pulls/459","id":74285221,"html_url":"https://github.com/marcgibbons/django-rest-swagger/pull/459","diff_url":"https://github.com/marcgibbons/django-rest-swagger/pull/459.diff","patch_url":"https://github.com/marcgibbons/django-rest-swagger/pull/459.patch","issue_url":"https://api.github.com/repos/marcgibbons/django-rest-swagger/issues/459","number":459,"state":"open","locked":false,"title":"Fix child field instantiation with missing arguments","user":{"login":"daluege","id":4172370,"avatar_url":"https://avatars.githubusercontent.com/u/4172370?v=3","gravatar_id":"","url":"https://api.github.com/users/daluege","html_url":"https://github.com/daluege","followers_url":"https://api.github.com/users/daluege/followers","following_url":"https://api.github.com/users/daluege/following{/other_user}","gists_url":"https://api.github.com/users/daluege/gists{/gist_id}","starred_url":"https://api.github.com/users/daluege/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/daluege/subscriptions","organizations_url":"https://api.github.com/users/daluege/orgs","repos_url":"https://api.github.com/users/daluege/repos","events_url":"https://api.github.com/users/daluege/events{/privacy}","received_events_url":"https://api.github.com/users/daluege/received_events","type":"User","site_admin":false},"body":"docgenerator.py:\r\n```\r\n    def _find_field_serializers(self, serializers, found_serializers=set()):\r\n        \"\"\"\r\n        Returns set of serializers discovered from fields\r\n        \"\"\"\r\n        ...\r\n            fields = serializer().get_fields()\r\n```\r\n\r\nprovokes an instantiation error (`AssertionError: The `slug_field` argument is required.`), when a `ListSerializer` is used with a `child` field that is not a serializer and that expects mandatory to its constructor.\r\n\r\ndjango-rest-swagger wrongly assumes the child to be a serializer and thus to be callable without arguments.\r\n\r\nExample:\r\n```\r\nclass ProfileSerializer(serializers.ModelSerializer):\r\n    interests = DictionarySerializer(child=serializers.SlugRelatedField(slug_field='title', queryset=Discipline.objects.all()))\r\n```\r\n\r\nTherefore, add a test for `child` to inherit from `BaseSerializer`.","created_at":"2016-06-17T18:25:51Z","updated_at":"2016-06-17T18:25:51Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/marcgibbons/django-rest-swagger/pulls/459/commits","review_comments_url":"https://api.github.com/repos/marcgibbons/django-rest-swagger/pulls/459/comments","review_comment_url":"https://api.github.com/repos/marcgibbons/django-rest-swagger/pulls/comments{/number}","comments_url":"https://api.github.com/repos/marcgibbons/django-rest-swagger/issues/459/comments","statuses_url":"https://api.github.com/repos/marcgibbons/django-rest-swagger/statuses/f2c35e8794b0d146bf4eff71a9863ac2ddf0e77a","head":{"label":"esanum:develop","ref":"develop","sha":"f2c35e8794b0d146bf4eff71a9863ac2ddf0e77a","user":{"login":"esanum","id":11082897,"avatar_url":"https://avatars.githubusercontent.com/u/11082897?v=3","gravatar_id":"","url":"https://api.github.com/users/esanum","html_url":"https://github.com/esanum","followers_url":"https://api.github.com/users/esanum/followers","following_url":"https://api.github.com/users/esanum/following{/other_user}","gists_url":"https://api.github.com/users/esanum/gists{/gist_id}","starred_url":"https://api.github.com/users/esanum/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/esanum/subscriptions","organizations_url":"https://api.github.com/users/esanum/orgs","repos_url":"https://api.github.com/users/esanum/repos","events_url":"https://api.github.com/users/esanum/events{/privacy}","received_events_url":"https://api.github.com/users/esanum/received_events","type":"Organization","site_admin":false},"repo":{"id":61224214,"name":"django-rest-swagger","full_name":"esanum/django-rest-swagger","owner":{"login":"esanum","id":11082897,"avatar_url":"https://avatars.githubusercontent.com/u/11082897?v=3","gravatar_id":"","url":"https://api.github.com/users/esanum","html_url":"https://github.com/esanum","followers_url":"https://api.github.com/users/esanum/followers","following_url":"https://api.github.com/users/esanum/following{/other_user}","gists_url":"https://api.github.com/users/esanum/gists{/gist_id}","starred_url":"https://api.github.com/users/esanum/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/esanum/subscriptions","organizations_url":"https://api.github.com/users/esanum/orgs","repos_url":"https://api.github.com/users/esanum/repos","events_url":"https://api.github.com/users/esanum/events{/privacy}","received_events_url":"https://api.github.com/users/esanum/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/esanum/django-rest-swagger","description":"Swagger Documentation Generator for Django REST Framework","fork":true,"url":"https://api.github.com/repos/esanum/django-rest-swagger","forks_url":"https://api.github.com/repos/esanum/django-rest-swagger/forks","keys_url":"https://api.github.com/repos/esanum/django-rest-swagger/keys{/key_id}","collaborators_url":"https://api.github.com/repos/esanum/django-rest-swagger/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/esanum/django-rest-swagger/teams","hooks_url":"https://api.github.com/repos/esanum/django-rest-swagger/hooks","issue_events_url":"https://api.github.com/repos/esanum/django-rest-swagger/issues/events{/number}","events_url":"https://api.github.com/repos/esanum/django-rest-swagger/events","assignees_url":"https://api.github.com/repos/esanum/django-rest-swagger/assignees{/user}","branches_url":"https://api.github.com/repos/esanum/django-rest-swagger/branches{/branch}","tags_url":"https://api.github.com/repos/esanum/django-rest-swagger/tags","blobs_url":"https://api.github.com/repos/esanum/django-rest-swagger/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/esanum/django-rest-swagger/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/esanum/django-rest-swagger/git/refs{/sha}","trees_url":"https://api.github.com/repos/esanum/django-rest-swagger/git/trees{/sha}","statuses_url":"https://api.github.com/repos/esanum/django-rest-swagger/statuses/{sha}","languages_url":"https://api.github.com/repos/esanum/django-rest-swagger/languages","stargazers_url":"https://api.github.com/repos/esanum/django-rest-swagger/stargazers","contributors_url":"https://api.github.com/repos/esanum/django-rest-swagger/contributors","subscribers_url":"https://api.github.com/repos/esanum/django-rest-swagger/subscribers","subscription_url":"https://api.github.com/repos/esanum/django-rest-swagger/subscription","commits_url":"https://api.github.com/repos/esanum/django-rest-swagger/commits{/sha}","git_commits_url":"https://api.github.com/repos/esanum/django-rest-swagger/git/commits{/sha}","comments_url":"https://api.github.com/repos/esanum/django-rest-swagger/comments{/number}","issue_comment_url":"https://api.github.com/repos/esanum/django-rest-swagger/issues/comments{/number}","contents_url":"https://api.github.com/repos/esanum/django-rest-swagger/contents/{+path}","compare_url":"https://api.github.com/repos/esanum/django-rest-swagger/compare/{base}...{head}","merges_url":"https://api.github.com/repos/esanum/django-rest-swagger/merges","archive_url":"https://api.github.com/repos/esanum/django-rest-swagger/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/esanum/django-rest-swagger/downloads","issues_url":"https://api.github.com/repos/esanum/django-rest-swagger/issues{/number}","pulls_url":"https://api.github.com/repos/esanum/django-rest-swagger/pulls{/number}","milestones_url":"https://api.github.com/repos/esanum/django-rest-swagger/milestones{/number}","notifications_url":"https://api.github.com/repos/esanum/django-rest-swagger/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/esanum/django-rest-swagger/labels{/name}","releases_url":"https://api.github.com/repos/esanum/django-rest-swagger/releases{/id}","deployments_url":"https://api.github.com/repos/esanum/django-rest-swagger/deployments","created_at":"2016-06-15T16:44:35Z","updated_at":"2016-06-15T16:44:36Z","pushed_at":"2016-06-15T17:28:24Z","git_url":"git://github.com/esanum/django-rest-swagger.git","ssh_url":"git@github.com:esanum/django-rest-swagger.git","clone_url":"https://github.com/esanum/django-rest-swagger.git","svn_url":"https://github.com/esanum/django-rest-swagger","homepage":"https://django-rest-swagger.readthedocs.io/","size":4914,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","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":"develop"}},"base":{"label":"marcgibbons:develop","ref":"develop","sha":"f19b87a479c0e6fa126f678c5ec08151017590f7","user":{"login":"marcgibbons","id":1726961,"avatar_url":"https://avatars.githubusercontent.com/u/1726961?v=3","gravatar_id":"","url":"https://api.github.com/users/marcgibbons","html_url":"https://github.com/marcgibbons","followers_url":"https://api.github.com/users/marcgibbons/followers","following_url":"https://api.github.com/users/marcgibbons/following{/other_user}","gists_url":"https://api.github.com/users/marcgibbons/gists{/gist_id}","starred_url":"https://api.github.com/users/marcgibbons/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marcgibbons/subscriptions","organizations_url":"https://api.github.com/users/marcgibbons/orgs","repos_url":"https://api.github.com/users/marcgibbons/repos","events_url":"https://api.github.com/users/marcgibbons/events{/privacy}","received_events_url":"https://api.github.com/users/marcgibbons/received_events","type":"User","site_admin":false},"repo":{"id":10674033,"name":"django-rest-swagger","full_name":"marcgibbons/django-rest-swagger","owner":{"login":"marcgibbons","id":1726961,"avatar_url":"https://avatars.githubusercontent.com/u/1726961?v=3","gravatar_id":"","url":"https://api.github.com/users/marcgibbons","html_url":"https://github.com/marcgibbons","followers_url":"https://api.github.com/users/marcgibbons/followers","following_url":"https://api.github.com/users/marcgibbons/following{/other_user}","gists_url":"https://api.github.com/users/marcgibbons/gists{/gist_id}","starred_url":"https://api.github.com/users/marcgibbons/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marcgibbons/subscriptions","organizations_url":"https://api.github.com/users/marcgibbons/orgs","repos_url":"https://api.github.com/users/marcgibbons/repos","events_url":"https://api.github.com/users/marcgibbons/events{/privacy}","received_events_url":"https://api.github.com/users/marcgibbons/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/marcgibbons/django-rest-swagger","description":"Swagger Documentation Generator for Django REST Framework","fork":false,"url":"https://api.github.com/repos/marcgibbons/django-rest-swagger","forks_url":"https://api.github.com/repos/marcgibbons/django-rest-swagger/forks","keys_url":"https://api.github.com/repos/marcgibbons/django-rest-swagger/keys{/key_id}","collaborators_url":"https://api.github.com/repos/marcgibbons/django-rest-swagger/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/marcgibbons/django-rest-swagger/teams","hooks_url":"https://api.github.com/repos/marcgibbons/django-rest-swagger/hooks","issue_events_url":"https://api.github.com/repos/marcgibbons/django-rest-swagger/issues/events{/number}","events_url":"https://api.github.com/repos/marcgibbons/django-rest-swagger/events","assignees_url":"https://api.github.com/repos/marcgibbons/django-rest-swagger/assignees{/user}","branches_url":"https://api.github.com/repos/marcgibbons/django-rest-swagger/branches{/branch}","tags_url":"https://api.github.com/repos/marcgibbons/django-rest-swagger/tags","blobs_url":"https://api.github.com/repos/marcgibbons/django-rest-swagger/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/marcgibbons/django-rest-swagger/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/marcgibbons/django-rest-swagger/git/refs{/sha}","trees_url":"https://api.github.com/repos/marcgibbons/django-rest-swagger/git/trees{/sha}","statuses_url":"https://api.github.com/repos/marcgibbons/django-rest-swagger/statuses/{sha}","languages_url":"https://api.github.com/repos/marcgibbons/django-rest-swagger/languages","stargazers_url":"https://api.github.com/repos/marcgibbons/django-rest-swagger/stargazers","contributors_url":"https://api.github.com/repos/marcgibbons/django-rest-swagger/contributors","subscribers_url":"https://api.github.com/repos/marcgibbons/django-rest-swagger/subscribers","subscription_url":"https://api.github.com/repos/marcgibbons/django-rest-swagger/subscription","commits_url":"https://api.github.com/repos/marcgibbons/django-rest-swagger/commits{/sha}","git_commits_url":"https://api.github.com/repos/marcgibbons/django-rest-swagger/git/commits{/sha}","comments_url":"https://api.github.com/repos/marcgibbons/django-rest-swagger/comments{/number}","issue_comment_url":"https://api.github.com/repos/marcgibbons/django-rest-swagger/issues/comments{/number}","contents_url":"https://api.github.com/repos/marcgibbons/django-rest-swagger/contents/{+path}","compare_url":"https://api.github.com/repos/marcgibbons/django-rest-swagger/compare/{base}...{head}","merges_url":"https://api.github.com/repos/marcgibbons/django-rest-swagger/merges","archive_url":"https://api.github.com/repos/marcgibbons/django-rest-swagger/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/marcgibbons/django-rest-swagger/downloads","issues_url":"https://api.github.com/repos/marcgibbons/django-rest-swagger/issues{/number}","pulls_url":"https://api.github.com/repos/marcgibbons/django-rest-swagger/pulls{/number}","milestones_url":"https://api.github.com/repos/marcgibbons/django-rest-swagger/milestones{/number}","notifications_url":"https://api.github.com/repos/marcgibbons/django-rest-swagger/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/marcgibbons/django-rest-swagger/labels{/name}","releases_url":"https://api.github.com/repos/marcgibbons/django-rest-swagger/releases{/id}","deployments_url":"https://api.github.com/repos/marcgibbons/django-rest-swagger/deployments","created_at":"2013-06-13T19:28:32Z","updated_at":"2016-06-17T13:47:33Z","pushed_at":"2016-06-17T18:25:51Z","git_url":"git://github.com/marcgibbons/django-rest-swagger.git","ssh_url":"git@github.com:marcgibbons/django-rest-swagger.git","clone_url":"https://github.com/marcgibbons/django-rest-swagger.git","svn_url":"https://github.com/marcgibbons/django-rest-swagger","homepage":"https://django-rest-swagger.readthedocs.io/","size":6221,"stargazers_count":1067,"watchers_count":1067,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":349,"mirror_url":null,"open_issues_count":170,"forks":349,"open_issues":170,"watchers":1067,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/marcgibbons/django-rest-swagger/pulls/459"},"html":{"href":"https://github.com/marcgibbons/django-rest-swagger/pull/459"},"issue":{"href":"https://api.github.com/repos/marcgibbons/django-rest-swagger/issues/459"},"comments":{"href":"https://api.github.com/repos/marcgibbons/django-rest-swagger/issues/459/comments"},"review_comments":{"href":"https://api.github.com/repos/marcgibbons/django-rest-swagger/pulls/459/comments"},"review_comment":{"href":"https://api.github.com/repos/marcgibbons/django-rest-swagger/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/marcgibbons/django-rest-swagger/pulls/459/commits"},"statuses":{"href":"https://api.github.com/repos/marcgibbons/django-rest-swagger/statuses/f2c35e8794b0d146bf4eff71a9863ac2ddf0e77a"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":1,"deletions":1,"changed_files":1}}
{"actor":{"display_login":"daluege"}}