diff options
| author | Tom Christie | 2014-12-15 12:18:55 +0000 | 
|---|---|---|
| committer | Tom Christie | 2014-12-15 12:18:55 +0000 | 
| commit | b6ee784240b3c7f6cd62af5b6fe6d1014d7bf6d4 (patch) | |
| tree | e3cdb5a6e210e5ba26d6726cc08a44c8f450776b /rest_framework/utils/serializer_helpers.py | |
| parent | 8934e61b67e4aed38b04f2fe18f011ecbf9010cb (diff) | |
| parent | af53e34dd5873f3373e9991c3825e70d92432e14 (diff) | |
| download | django-rest-framework-b6ee784240b3c7f6cd62af5b6fe6d1014d7bf6d4.tar.bz2 | |
Merge master
Diffstat (limited to 'rest_framework/utils/serializer_helpers.py')
| -rw-r--r-- | rest_framework/utils/serializer_helpers.py | 7 | 
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): | 
