From d0400842f8c53dc3a73521b647566b9dcd1eccc7 Mon Sep 17 00:00:00 2001 From: Tom Christie Date: Wed, 27 Jul 2016 12:52:14 +0100 Subject: [PATCH] Schema support should function when 'pagination_class = None' --- 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()