summaryrefslogtreecommitdiff
path: root/django
diff options
context:
space:
mode:
authorKosei Kitahara <surgo.jp@gmail.com>2016-11-24 19:56:39 +0900
committerTim Graham <timograham@gmail.com>2016-11-24 05:56:39 -0500
commitf095b249baf34bbdd4c0b28c9bde05b4d20681be (patch)
tree9bb474ff5990ac5372481dae3f9087a133f9d397 /django
parentdf2a5227c90d60bdae154ac5acc0436a6ed1f953 (diff)
Fixed #27517 -- Fixed charset param in SimpleTemplateResponse.__init__().
Diffstat (limited to 'django')
-rw-r--r--django/template/response.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/django/template/response.py b/django/template/response.py
index 7d6693aee6..95cb335ab4 100644
--- a/django/template/response.py
+++ b/django/template/response.py
@@ -34,7 +34,7 @@ class SimpleTemplateResponse(HttpResponse):
# content argument doesn't make sense here because it will be replaced
# with rendered template so we always pass empty string in order to
# prevent errors and provide shorter signature.
- super(SimpleTemplateResponse, self).__init__('', content_type, status, charset)
+ super(SimpleTemplateResponse, self).__init__('', content_type, status, charset=charset)
# _is_rendered tracks whether the template and context has been baked
# into a final response.