Commit 75be9191 by Tom Christie

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

parent d86fd678
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment