Skip to content

Commit 8685ea5

Browse files
committed
Merge pull request #3351 from arpheno/version-2.4.x
backport of #2492 from tomchristie ref #1850: _closable_objects as an…
2 parents 647fdb5 + 131e99b commit 8685ea5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

rest_framework/response.py

100644100755
+1
Original file line numberDiff line numberDiff line change
@@ -91,4 +91,5 @@ def __getstate__(self):
9191
for key in ('accepted_renderer', 'renderer_context', 'data'):
9292
if key in state:
9393
del state[key]
94+
state['_closable_objects'] = []
9495
return state

0 commit comments

Comments
 (0)