mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-01-25 00:34:21 +03:00
Schema support should function when 'pagination_class = None' (#4314)
This commit is contained in:
parent
351e0a4a99
commit
8ebf81b150
|
@ -278,7 +278,7 @@ class SchemaGenerator(object):
|
||||||
if hasattr(callback, 'actions') and ('list' not in callback.actions.values()):
|
if hasattr(callback, 'actions') and ('list' not in callback.actions.values()):
|
||||||
return []
|
return []
|
||||||
|
|
||||||
if not hasattr(view, 'pagination_class'):
|
if not getattr(view, 'pagination_class', None):
|
||||||
return []
|
return []
|
||||||
|
|
||||||
paginator = view.pagination_class()
|
paginator = view.pagination_class()
|
||||||
|
|
Loading…
Reference in New Issue
Block a user