From 131e99baefaa935e90984246ada8b238e7208baa Mon Sep 17 00:00:00 2001 From: Sebastian Wozny Date: Mon, 31 Aug 2015 13:32:13 +0200 Subject: [PATCH] =?UTF-8?q?backport=20of=20#2492=20from=20tomchristie=20re?= =?UTF-8?q?f=20#1850:=20=5Fclosable=5Fobjects=20as=20an=E2=80=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- rest_framework/response.py | 1 + 1 file changed, 1 insertion(+) mode change 100644 => 100755 rest_framework/response.py diff --git a/rest_framework/response.py b/rest_framework/response.py old mode 100644 new mode 100755 index 0a7d313f4..ba48648c9 --- a/rest_framework/response.py +++ b/rest_framework/response.py @@ -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