aboutsummaryrefslogtreecommitdiffstats
path: root/rest_framework/compat.py
diff options
context:
space:
mode:
authorTom Christie2014-01-31 03:45:04 -0800
committerTom Christie2014-01-31 03:45:04 -0800
commit8f921160e5a4b50f622449f368df41e5e36c0ebe (patch)
tree85dc04f87252313d7a484d92d174cf94684c2aed /rest_framework/compat.py
parent18f26ff5cc193726956d97f1a7d5ced5e6c0f4ee (diff)
parent0043f30cab86f50b61ce265635d503c8212848c4 (diff)
downloaddjango-rest-framework-8f921160e5a4b50f622449f368df41e5e36c0ebe.tar.bz2
Merge pull request #1377 from Ian-Foote/force_bytes
Import force_bytes on django >= 1.5
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 b69749fe..d283e2f5 100644
--- a/rest_framework/compat.py
+++ b/rest_framework/compat.py
@@ -457,7 +457,7 @@ from django.test.client import RequestFactory as DjangoRequestFactory
from django.test.client import FakePayload
try:
# In 1.5 the test client uses force_bytes
- from django.utils.encoding import force_bytes_or_smart_bytes
+ from django.utils.encoding import force_bytes as force_bytes_or_smart_bytes
except ImportError:
# In 1.3 and 1.4 the test client just uses smart_str
from django.utils.encoding import smart_str as force_bytes_or_smart_bytes