diff options
Diffstat (limited to 'rest_framework/compat.py')
| -rw-r--r-- | rest_framework/compat.py | 2 | 
1 files changed, 1 insertions, 1 deletions
| diff --git a/rest_framework/compat.py b/rest_framework/compat.py index 17814136..766afaec 100644 --- a/rest_framework/compat.py +++ b/rest_framework/compat.py @@ -20,7 +20,7 @@ def unicode_repr(instance):      # Get the repr of an instance, but ensure it is a unicode string      # on both python 3 (already the case) and 2 (not the case).      if six.PY2: -        repr(instance).decode('utf-8') +        return repr(instance).decode('utf-8')      return repr(instance) | 
