backport of #2492 from tomchristie ref #1850: _closable_objects as an…

This commit is contained in:
Sebastian Wozny 2015-08-31 13:32:13 +02:00
parent 647fdb51d2
commit 131e99baef

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'):
if key in state:
del state[key]
state['_closable_objects'] = []
return state