Commits

Brodie Rao committed d33942a

Fix Django 1.4 compatibility

Comments (0)

Files changed (1)

         # If we're looking at a response object which contains non-string
         # content, then assume we should use the emitter to format that
         # content
-        if isinstance(result, HttpResponse) and not result._is_string:
+        if isinstance(result, HttpResponse) and result._base_content_is_iter:
             status_code = result.status_code
             # Note: We can't use result.content here because that method attempts
             # to convert the content into a string which we don't want.