Commit 871ce349 by Tom Christie Committed by GitHub

Merge pull request #5161 from matteius/master

If pagination class, include the schema generation
parents 6831472a 99569190
...@@ -606,7 +606,7 @@ class SchemaGenerator(object): ...@@ -606,7 +606,7 @@ class SchemaGenerator(object):
return [] return []
pagination = getattr(view, 'pagination_class', None) pagination = getattr(view, 'pagination_class', None)
if not pagination or not getattr(pagination, 'page_size', None): if not pagination:
return [] return []
paginator = view.pagination_class() 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