diff options
| author | Tom Christie | 2015-01-21 13:12:14 +0000 | 
|---|---|---|
| committer | Tom Christie | 2015-01-21 13:12:14 +0000 | 
| commit | 9ec08ce57889dc329506a572044438a55da61303 (patch) | |
| tree | 6ef0132e70ae38680a006322a31c272ec2ae4d6b /rest_framework/compat.py | |
| parent | 3cc39ffbceffc5fdbb511d9a10e7732329e8baa4 (diff) | |
| parent | 9d24809a4dee67ee414ee79820331f0794c42a13 (diff) | |
| download | django-rest-framework-9ec08ce57889dc329506a572044438a55da61303.tar.bz2 | |
Merge master
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 bd3802ad..a6620057 100644 --- a/rest_framework/compat.py +++ b/rest_framework/compat.py @@ -18,7 +18,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) | 
