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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy