From 8ebf81b1502bee067fe842fa23442aa4bc176473 Mon Sep 17 00:00:00 2001 From: Tom Christie Date: Wed, 27 Jul 2016 13:02:48 +0100 Subject: [PATCH] Schema support should function when 'pagination_class = None' (#4314) --- 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 cf84aca74..523b2f1ec 100644 --- a/rest_framework/schemas.py +++ b/rest_framework/schemas.py @@ -278,7 +278,7 @@ class SchemaGenerator(object): if hasattr(callback, 'actions') and ('list' not in callback.actions.values()): return [] - if not hasattr(view, 'pagination_class'): + if not getattr(view, 'pagination_class', None): return [] paginator = view.pagination_class()