Skip to content

Commit 131e99b

Browse files
author
Sebastian Wozny
committed
backport of #2492 from tomchristie ref #1850: _closable_objects as an…
1 parent 647fdb5 commit 131e99b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

rest_framework/response.py

100644100755
Lines changed: 1 addition & 0 deletions
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)