mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-11-11 12:17:24 +03:00
Merge pull request #2807 from iorlas/patch-2
Now it is possible to display viewset w/o paginator
This commit is contained in:
commit
605369e2b4
|
@ -611,7 +611,7 @@ class BrowsableAPIRenderer(BaseRenderer):
|
|||
renderer_content_type += ' ;%s' % renderer.charset
|
||||
response_headers['Content-Type'] = renderer_content_type
|
||||
|
||||
if hasattr(view, 'paginator') and view.paginator.display_page_controls:
|
||||
if getattr(view, 'paginator', None) and view.paginator.display_page_controls:
|
||||
paginator = view.paginator
|
||||
else:
|
||||
paginator = None
|
||||
|
|
Loading…
Reference in New Issue
Block a user