Ticket #6063: httpresponse_only_str.diff
File httpresponse_only_str.diff, 765 bytes (added by , 17 years ago) |
---|
-
django/http/__init__.py
260 260 self._container = content 261 261 self._is_string = False 262 262 else: 263 self._container = [ content]263 self._container = [str(content)] 264 264 self._is_string = True 265 265 self.cookies = SimpleCookie() 266 266 if status: … … 318 318 return smart_str(''.join(self._container), self._charset) 319 319 320 320 def _set_content(self, value): 321 self._container = [ value]321 self._container = [str(value)] 322 322 self._is_string = True 323 323 324 324 content = property(_get_content, _set_content)