mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-12-01 22:14:06 +03:00
SchemaGenerator: Avoid crashing with pagesizeless paginators
This commit is contained in:
parent
bd768d6253
commit
72da73310d
|
@ -604,7 +604,7 @@ class SchemaGenerator(object):
|
||||||
return []
|
return []
|
||||||
|
|
||||||
pagination = getattr(view, 'pagination_class', None)
|
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 []
|
return []
|
||||||
|
|
||||||
paginator = view.pagination_class()
|
paginator = view.pagination_class()
|
||||||
|
|
Loading…
Reference in New Issue
Block a user