You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@staticmethoddef_use_emitter(result):
"""True iff result is a HttpResponse and contains non-string content."""ifnotisinstance(result, HttpResponse):
returnFalseelifdjango.VERSION>= (1, 4):
returnresult._base_content_is_iterelse:
returnnotresult._is_string
with
@staticmethoddef_use_emitter(result):
"""True iff result is a HttpResponse and contains non-string content."""returnisinstance(result, HttpResponse)
Since:
We don't care about django.VERSION < (1, 4)
Since HttpStreamingResponse is not a subclass of HttpResponse (it's a subclass of HttpResponseBase), we should always expect HttpResponse to contain string content (I think)
https://github.com/educreations/django-piston/blob/master/piston/resource.py#L246
django/django@8b9b8d3#diff-eeebc8cb56240caf13a9952431189fef
Blocking us from upgrading to Django 1.7
The text was updated successfully, but these errors were encountered: