mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-01-23 15:54:16 +03:00
Allow AdminRenderer to function when pagination is disabled. Closes #3275.
This commit is contained in:
parent
d86fd67895
commit
75be91912c
|
@ -737,7 +737,7 @@ class AdminRenderer(BrowsableAPIRenderer):
|
|||
if (paginator is not None and data is not None):
|
||||
try:
|
||||
results = paginator.get_results(data)
|
||||
except KeyError:
|
||||
except (TypeError, KeyError):
|
||||
results = data
|
||||
else:
|
||||
results = data
|
||||
|
|
Loading…
Reference in New Issue
Block a user