Commit 5e5fd678 by Tom Christie Committed by GitHub

Merge pull request #5086 from valohai/limit-offset-pagination-schema

SchemaGenerator: Avoid crashing with pagesizeless paginators
parents ee1a9fce 72da7331
......@@ -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