mirror of
https://github.com/django/django.git
synced 2025-11-07 07:15:35 +00:00
Fixed #27517 -- Fixed charset param in SimpleTemplateResponse.__init__().
This commit is contained in:
committed by
Tim Graham
parent
df2a5227c9
commit
f095b249ba
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user