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