diff --git a/rest_framework/schemas.py b/rest_framework/schemas.py index ec6d7f3c38..52e14759f6 100644 --- a/rest_framework/schemas.py +++ b/rest_framework/schemas.py @@ -604,7 +604,7 @@ def get_pagination_fields(self, path, method, view): return [] pagination = getattr(view, 'pagination_class', None) - if not pagination or not pagination.page_size: + if not pagination or not getattr(pagination, 'page_size', None): return [] paginator = view.pagination_class()