mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-06-18 12:33:20 +03:00
Use safe_dump. Fixes #123.
This commit is contained in:
parent
aaa14a3e17
commit
b1105edfed
|
@ -169,7 +169,7 @@ if yaml:
|
||||||
if obj is None:
|
if obj is None:
|
||||||
return ''
|
return ''
|
||||||
|
|
||||||
return yaml.dump(obj)
|
return yaml.safe_dump(obj)
|
||||||
else:
|
else:
|
||||||
YAMLRenderer = None
|
YAMLRenderer = None
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user