aboutsummaryrefslogtreecommitdiffstats
path: root/rest_framework/compat.py
diff options
context:
space:
mode:
authorTom Christie2015-01-21 13:12:14 +0000
committerTom Christie2015-01-21 13:12:14 +0000
commit9ec08ce57889dc329506a572044438a55da61303 (patch)
tree6ef0132e70ae38680a006322a31c272ec2ae4d6b /rest_framework/compat.py
parent3cc39ffbceffc5fdbb511d9a10e7732329e8baa4 (diff)
parent9d24809a4dee67ee414ee79820331f0794c42a13 (diff)
downloaddjango-rest-framework-9ec08ce57889dc329506a572044438a55da61303.tar.bz2
Merge master
Diffstat (limited to 'rest_framework/compat.py')
-rw-r--r--rest_framework/compat.py2
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)