Merge pull request #3351 from arpheno/version-2.4.x

backport of #2492 from tomchristie ref #1850: _closable_objects as an…
This commit is contained in:
Xavier Ordoquy 2015-08-31 13:52:11 +02:00
commit 8685ea59c5

1
rest_framework/response.py Normal file → Executable file
View File

@ -91,4 +91,5 @@ class Response(SimpleTemplateResponse):
for key in ('accepted_renderer', 'renderer_context', 'data'): for key in ('accepted_renderer', 'renderer_context', 'data'):
if key in state: if key in state:
del state[key] del state[key]
state['_closable_objects'] = []
return state return state