aboutsummaryrefslogtreecommitdiffstats
path: root/rest_framework/utils/serializer_helpers.py
diff options
context:
space:
mode:
authorTom Christie2014-12-15 12:18:55 +0000
committerTom Christie2014-12-15 12:18:55 +0000
commitb6ee784240b3c7f6cd62af5b6fe6d1014d7bf6d4 (patch)
treee3cdb5a6e210e5ba26d6726cc08a44c8f450776b /rest_framework/utils/serializer_helpers.py
parent8934e61b67e4aed38b04f2fe18f011ecbf9010cb (diff)
parentaf53e34dd5873f3373e9991c3825e70d92432e14 (diff)
downloaddjango-rest-framework-b6ee784240b3c7f6cd62af5b6fe6d1014d7bf6d4.tar.bz2
Merge master
Diffstat (limited to 'rest_framework/utils/serializer_helpers.py')
-rw-r--r--rest_framework/utils/serializer_helpers.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/rest_framework/utils/serializer_helpers.py b/rest_framework/utils/serializer_helpers.py
index 277cf649..65a04d06 100644
--- a/rest_framework/utils/serializer_helpers.py
+++ b/rest_framework/utils/serializer_helpers.py
@@ -1,5 +1,6 @@
+from __future__ import unicode_literals
import collections
-from rest_framework.compat import OrderedDict
+from rest_framework.compat import OrderedDict, unicode_to_repr
class ReturnDict(OrderedDict):
@@ -47,9 +48,9 @@ class BoundField(object):
return self._field.__class__
def __repr__(self):
- return '<%s value=%s errors=%s>' % (
+ return unicode_to_repr('<%s value=%s errors=%s>' % (
self.__class__.__name__, self.value, self.errors
- )
+ ))
class NestedBoundField(BoundField):