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

This commit is contained in:
Tom Christie 2016-07-27 13:02:48 +01:00 committed by GitHub
parent 351e0a4a99
commit 8ebf81b150

View File

@ -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()