From 1aa58d16be0e96c7337b1d6bef928c9542c72741 Mon Sep 17 00:00:00 2001 From: Tom Christie Date: Thu, 20 Nov 2014 14:26:40 +0000 Subject: [PATCH] Py3 fix - .items is not a list. --- rest_framework/renderers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rest_framework/renderers.py b/rest_framework/renderers.py index 8717137af..a9885d3e0 100644 --- a/rest_framework/renderers.py +++ b/rest_framework/renderers.py @@ -562,7 +562,7 @@ class BrowsableAPIRenderer(BaseRenderer): serializer.data, self.accepted_media_type, dict( - self.renderer_context.items() + + list(self.renderer_context.items()) + [('template', 'rest_framework/api_form.html')] ) )