Commit 72da7331 by Aarni Koskela

SchemaGenerator: Avoid crashing with pagesizeless paginators

parent bd768d62
......@@ -604,7 +604,7 @@ class SchemaGenerator(object):
return []
pagination = getattr(view, 'pagination_class', None)
if not pagination or not pagination.page_size:
if not pagination or not getattr(pagination, 'page_size', 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