Skip to content

Commit e231a41

Browse files
committed
backport of encode#2492 from tomchristie ref encode#1850: _closable_objects as an empty list, not deleted as to prevent cache failures
1 parent 67ae6b2 commit e231a41

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

rest_framework/response.py

+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)