diff options
| author | Tom Christie | 2015-01-19 14:21:09 +0000 |
|---|---|---|
| committer | Tom Christie | 2015-01-19 14:21:09 +0000 |
| commit | 0dffc46cb71ec868cdbb37187ba03dea7bac4e7a (patch) | |
| tree | 5455145b85f95b991306ded863206fbba342fa72 /rest_framework/utils/serializer_helpers.py | |
| parent | da1db34a36f6f0cb8722acbbf7c3182e32995ae3 (diff) | |
| download | django-rest-framework-0dffc46cb71ec868cdbb37187ba03dea7bac4e7a.tar.bz2 | |
ReturnDict and ReturnList repr as standard dict/list. Closes #2421.
Diffstat (limited to 'rest_framework/utils/serializer_helpers.py')
| -rw-r--r-- | rest_framework/utils/serializer_helpers.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/rest_framework/utils/serializer_helpers.py b/rest_framework/utils/serializer_helpers.py index 65a04d06..f9960603 100644 --- a/rest_framework/utils/serializer_helpers.py +++ b/rest_framework/utils/serializer_helpers.py @@ -16,6 +16,9 @@ class ReturnDict(OrderedDict): def copy(self): return ReturnDict(self, serializer=self.serializer) + def __repr__(self): + return dict.__repr__(self) + class ReturnList(list): """ @@ -27,6 +30,9 @@ class ReturnList(list): self.serializer = kwargs.pop('serializer') super(ReturnList, self).__init__(*args, **kwargs) + def __repr__(self): + return list.__repr__(self) + class BoundField(object): """ |
