Skip to content

Commit 210739f

Browse files
committed
Use codec’s encode rather than dump
1 parent 6eb116c commit 210739f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rest_framework/renderers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -897,4 +897,4 @@ def __init__(self):
897897
def render(self, data, media_type=None, renderer_context=None):
898898
indent = bool(renderer_context.get('indent', 0))
899899
codec = coreapi.codecs.CoreJSONCodec()
900-
return codec.dump(data, indent=indent)
900+
return codec.encode(data, indent=indent)

0 commit comments

Comments
 (0)