Commit 16aad894 by sol HYUN

reverted to fix the issue without changing setting

parent 9c3edb09
...@@ -600,7 +600,8 @@ class SchemaGenerator(object): ...@@ -600,7 +600,8 @@ class SchemaGenerator(object):
if not is_list_view(path, method, view): if not is_list_view(path, method, view):
return [] return []
if not getattr(view, 'pagination_class', None): pagination = getattr(view, 'pagination_class', None)
if not pagination or not pagination.page_size:
return [] return []
paginator = view.pagination_class() paginator = view.pagination_class()
......
...@@ -50,7 +50,7 @@ DEFAULTS = { ...@@ -50,7 +50,7 @@ DEFAULTS = {
'DEFAULT_VERSIONING_CLASS': None, 'DEFAULT_VERSIONING_CLASS': None,
# Generic view behavior # Generic view behavior
'DEFAULT_PAGINATION_CLASS': None, 'DEFAULT_PAGINATION_CLASS': 'rest_framework.pagination.PageNumberPagination',
'DEFAULT_FILTER_BACKENDS': (), 'DEFAULT_FILTER_BACKENDS': (),
# Throttling # Throttling
......
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