aboutsummaryrefslogtreecommitdiffstats
path: root/rest_framework/response.py
diff options
context:
space:
mode:
authorXavier Ordoquy2014-07-29 08:35:00 +0200
committerXavier Ordoquy2014-07-29 08:35:00 +0200
commit4210fedd211eaff80d139a4967577621282f520b (patch)
tree38122154141d6454c1a0b2831d78934ed6a9c209 /rest_framework/response.py
parent0cbdbd24e57fbe58b90d77e454594a49a5f357b8 (diff)
downloaddjango-rest-framework-4210fedd211eaff80d139a4967577621282f520b.tar.bz2
Fixed the cache issue with Django 1.7 rc*
Diffstat (limited to 'rest_framework/response.py')
-rw-r--r--rest_framework/response.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/rest_framework/response.py b/rest_framework/response.py
index 1dc6abcf..77cbb07c 100644
--- a/rest_framework/response.py
+++ b/rest_framework/response.py
@@ -15,6 +15,7 @@ class Response(SimpleTemplateResponse):
An HttpResponse that allows its data to be rendered into
arbitrary media types.
"""
+ rendering_attrs = SimpleTemplateResponse.rendering_attrs + ['_closable_objects']
def __init__(self, data=None, status=200,
template_name=None, headers=None,