Merge pull request #1847 from hamishcampbell/master

Stop the API Client converting empty lists/dicts to empty strings
This commit is contained in:
Tom Christie 2014-09-08 09:53:59 +01:00
commit 880ec3fe97

View File

@ -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, (