mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-11-25 19:14:01 +03:00
If pagination class, include the schema generation
https://github.com/encode/django-rest-framework/issues/5144
This commit is contained in:
parent
6831472a62
commit
99569190ab
|
@ -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