Py3 fix - .items is not a list.

This commit is contained in:
Tom Christie 2014-11-20 14:26:40 +00:00
parent 071c064d25
commit 1aa58d16be

View File

@ -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')]
)
)