mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-11-22 01:26:53 +03:00
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:
commit
8685ea59c5
1
rest_framework/response.py
Normal file → Executable file
1
rest_framework/response.py
Normal file → Executable 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
|
||||
|
|
Loading…
Reference in New Issue
Block a user