diff options
| author | Tom Christie | 2013-10-21 09:30:17 +0100 |
|---|---|---|
| committer | Tom Christie | 2013-10-21 09:30:17 +0100 |
| commit | c37bd40d2869892a08722b479a8c56f87332f6fd (patch) | |
| tree | eb0278d41bf9dc0b9617ae94b417f7b50bb7c77f /rest_framework/utils/encoders.py | |
| parent | 70b0798118c8c02903421bca03e0406fe65d737f (diff) | |
| parent | 2bea76471007f571db0463df2b2de18e9929b12f (diff) | |
| download | django-rest-framework-c37bd40d2869892a08722b479a8c56f87332f6fd.tar.bz2 | |
Merge branch 'master' of https://github.com/tomchristie/django-rest-framework
Diffstat (limited to 'rest_framework/utils/encoders.py')
| -rw-r--r-- | rest_framework/utils/encoders.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/rest_framework/utils/encoders.py b/rest_framework/utils/encoders.py index 7efd5417..35ad206b 100644 --- a/rest_framework/utils/encoders.py +++ b/rest_framework/utils/encoders.py @@ -89,6 +89,9 @@ else: node.flow_style = best_style return node + SafeDumper.add_representer(decimal.Decimal, + SafeDumper.represent_decimal) + SafeDumper.add_representer(SortedDict, yaml.representer.SafeRepresenter.represent_dict) SafeDumper.add_representer(DictWithMetadata, |
