From b1105edfedd6fed932fc97520fd8e0a8cbf05f1f Mon Sep 17 00:00:00 2001 From: Tom Christie Date: Wed, 11 Jan 2012 13:43:47 +0000 Subject: [PATCH] Use safe_dump. Fixes #123. --- djangorestframework/renderers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/djangorestframework/renderers.py b/djangorestframework/renderers.py index cdce857db..42d80bd4d 100644 --- a/djangorestframework/renderers.py +++ b/djangorestframework/renderers.py @@ -169,7 +169,7 @@ if yaml: if obj is None: return '' - return yaml.dump(obj) + return yaml.safe_dump(obj) else: YAMLRenderer = None