Skip to content

Commit 4210fed

Browse files
committed
Fixed the cache issue with Django 1.7 rc*
1 parent 0cbdbd2 commit 4210fed

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
@@ -15,6 +15,7 @@ class Response(SimpleTemplateResponse):
1515
An HttpResponse that allows its data to be rendered into
1616
arbitrary media types.
1717
"""
18+
rendering_attrs = SimpleTemplateResponse.rendering_attrs + ['_closable_objects']
1819

1920
def __init__(self, data=None, status=200,
2021
template_name=None, headers=None,

0 commit comments

Comments
 (0)