1. Mikhail Korobov
  2. django-piston

Commits

Mikhail Korobov  committed 00e950d

make HttpResponseWrapper compatible with upcoming django 1.4

  • Participants
  • Parent commits f6ac8ad
  • Branches default

Comments (0)

Files changed (1)

File piston/utils.py

View file
  • Ignore whitespace
                 if not isinstance(content, basestring) and hasattr(content, '__iter__'):
                     self._container = content
                     self._is_string = False
+                    self._base_content_is_iter = True
                 else:
                     self._container = [content]
                     self._is_string = True
+                    self._base_content_is_iter = False
 
             content = property(HttpResponse._get_content, _set_content)