mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-01-24 16:24:18 +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:
|
||||
return ''
|
||||
|
||||
return yaml.dump(obj)
|
||||
return yaml.safe_dump(obj)
|
||||
else:
|
||||
YAMLRenderer = None
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user