Schema support should function when 'pagination_class = None'

This commit is contained in:
Tom Christie 2016-07-27 12:52:14 +01:00
parent 351e0a4a99
commit d0400842f8

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