aboutsummaryrefslogtreecommitdiffstats
path: root/rest_framework/compat.py
diff options
context:
space:
mode:
authorTom Christie2015-01-21 20:29:58 +0000
committerTom Christie2015-01-21 20:29:58 +0000
commit5e52f0fd8c3b4dbe70f1332d1323e3a544951e66 (patch)
tree61eab5961b51ad29072c7de0f4570bf648bc192f /rest_framework/compat.py
parente5b94f7b7bbf2f6f35c5e33fb2723bdb0d33bad3 (diff)
parent9ec08ce57889dc329506a572044438a55da61303 (diff)
downloaddjango-rest-framework-5e52f0fd8c3b4dbe70f1332d1323e3a544951e66.tar.bz2
Merge branch 'version-3.1' into cursor-pagination
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)