aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTom Christie2015-01-19 14:21:09 +0000
committerTom Christie2015-01-19 14:21:09 +0000
commit0dffc46cb71ec868cdbb37187ba03dea7bac4e7a (patch)
tree5455145b85f95b991306ded863206fbba342fa72
parentda1db34a36f6f0cb8722acbbf7c3182e32995ae3 (diff)
downloaddjango-rest-framework-0dffc46cb71ec868cdbb37187ba03dea7bac4e7a.tar.bz2
ReturnDict and ReturnList repr as standard dict/list. Closes #2421.
-rw-r--r--rest_framework/utils/serializer_helpers.py6
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):
"""