Commit 8ebf81b1 by Tom Christie Committed by GitHub

Schema support should function when 'pagination_class = None' (#4314)

parent 351e0a4a
......@@ -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()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment