Skip to content

Commit 027e211

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 027e211

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

rest_framework/response.py

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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy