Allow AdminRenderer to function when pagination is disabled. Closes #3275.

This commit is contained in:
Tom Christie 2015-08-20 12:28:00 +01:00
parent d86fd67895
commit 75be91912c

View File

@ -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