aboutsummaryrefslogtreecommitdiffstats
path: root/rest_framework/test.py
diff options
context:
space:
mode:
authorTom Christie2014-09-08 09:53:59 +0100
committerTom Christie2014-09-08 09:53:59 +0100
commit880ec3fe97d6b19c4609befe45129c23daa95e90 (patch)
treea9fe10a3f5aa20ddaadd7241b54a7048e16f16f4 /rest_framework/test.py
parentd4d7739574e2f41dc288fc796a61efdb94cc39f2 (diff)
parent826d76a8c7969e2ae91fe83fb077deb0329bafb1 (diff)
downloaddjango-rest-framework-880ec3fe97d6b19c4609befe45129c23daa95e90.tar.bz2
Merge pull request #1847 from hamishcampbell/master
Stop the API Client converting empty lists/dicts to empty strings
Diffstat (limited to 'rest_framework/test.py')
-rw-r--r--rest_framework/test.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/rest_framework/test.py b/rest_framework/test.py
index f89a6dcd..9b40353a 100644
--- a/rest_framework/test.py
+++ b/rest_framework/test.py
@@ -36,7 +36,7 @@ class APIRequestFactory(DjangoRequestFactory):
Encode the data returning a two tuple of (bytes, content_type)
"""
- if not data:
+ if data is None:
return ('', content_type)
assert format is None or content_type is None, (