mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-04-02 00:04:30 +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 []
|
||||
|
||||
pagination = getattr(view, 'pagination_class', None)
|
||||
if not pagination or not getattr(pagination, 'page_size', None):
|
||||
if not pagination:
|
||||
return []
|
||||
|
||||
paginator = view.pagination_class()
|
||||
|
|
Loading…
Reference in New Issue
Block a user