{"action":"opened","issue":{"url":"https://api.github.com/repos/tomchristie/django-rest-framework/issues/4289","repository_url":"https://api.github.com/repos/tomchristie/django-rest-framework","labels_url":"https://api.github.com/repos/tomchristie/django-rest-framework/issues/4289/labels{/name}","comments_url":"https://api.github.com/repos/tomchristie/django-rest-framework/issues/4289/comments","events_url":"https://api.github.com/repos/tomchristie/django-rest-framework/issues/4289/events","html_url":"https://github.com/tomchristie/django-rest-framework/issues/4289","id":166671920,"number":4289,"title":"Schemas Generator  produces error for views with no pagination class.","user":{"login":"f1shear","id":685412,"avatar_url":"https://avatars.githubusercontent.com/u/685412?v=3","gravatar_id":"","url":"https://api.github.com/users/f1shear","html_url":"https://github.com/f1shear","followers_url":"https://api.github.com/users/f1shear/followers","following_url":"https://api.github.com/users/f1shear/following{/other_user}","gists_url":"https://api.github.com/users/f1shear/gists{/gist_id}","starred_url":"https://api.github.com/users/f1shear/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/f1shear/subscriptions","organizations_url":"https://api.github.com/users/f1shear/orgs","repos_url":"https://api.github.com/users/f1shear/repos","events_url":"https://api.github.com/users/f1shear/events{/privacy}","received_events_url":"https://api.github.com/users/f1shear/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-07-20T20:17:12Z","updated_at":"2016-07-20T20:17:12Z","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\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\n    Class TaskList(generics.ListCreateAPIView):\r\n        queryset =  TaskModel.objects.all()\r\n        serializer_class = TaskSerializer\r\n        pagination_class = None\r\n\r\n\r\n    class ApiDocView(APIView):\r\n\r\n        def get(self, request, format=None):\r\n            generator = schemas.SchemaGenerator(title='API')\r\n            return Response(generator.get_schema(request=request))\r\n\r\n## Expected behavior\r\n\r\nSchema generator should consider views with pagination_class = None. \r\nThis issue is similar to #4265\r\n\r\n## Actual behavior\r\n\r\nSchema generator gives error\r\n File \"/path/to/env/local/lib/python2.7/site-packages/rest_framework/schemas.py\", line 284, in get_pagination_fields\r\n    paginator = view.pagination_class()\r\nTypeError: 'NoneType' object is not callable\r\n"}}
{"actor":{"display_login":"f1shear"}}