From 99569190abc20980384192db09eca7cf33cf4f89 Mon Sep 17 00:00:00 2001 From: Matt Davis Date: Mon, 22 May 2017 19:10:54 -0400 Subject: [PATCH] If pagination class, include the schema generation https://github.com/encode/django-rest-framework/issues/5144 --- rest_framework/schemas.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rest_framework/schemas.py b/rest_framework/schemas.py index afab8f71f..875f9454b 100644 --- a/rest_framework/schemas.py +++ b/rest_framework/schemas.py @@ -606,7 +606,7 @@ class SchemaGenerator(object): return [] pagination = getattr(view, 'pagination_class', None) - if not pagination or not getattr(pagination, 'page_size', None): + if not pagination: return [] paginator = view.pagination_class()