mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-02-02 20:54:42 +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):
|
if (paginator is not None and data is not None):
|
||||||
try:
|
try:
|
||||||
results = paginator.get_results(data)
|
results = paginator.get_results(data)
|
||||||
except KeyError:
|
except (TypeError, KeyError):
|
||||||
results = data
|
results = data
|
||||||
else:
|
else:
|
||||||
results = data
|
results = data
|
||||||
|
|
Loading…
Reference in New Issue
Block a user