mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-05-20 07:43:47 +03:00
Merge pull request #5161 from matteius/master
If pagination class, include the schema generation
This commit is contained in:
commit
871ce34983
|
@ -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()
|
||||||
|
|
Loading…
Reference in New Issue
Block a user