summaryrefslogtreecommitdiff
path: root/django/template
diff options
context:
space:
mode:
authorCHI Cheng <cloudream@gmail.com>2018-05-03 16:57:18 +1000
committerCarlton Gibson <carlton.gibson@noumenal.es>2018-05-03 08:57:18 +0200
commit98019df855fb8fb93e4e9505afeedcad29da3125 (patch)
treea5e15a4991170cf27cb0f77e1ccc3d0e5822b71d /django/template
parent9e861859366bfe60b584b7737a706031eed4c0aa (diff)
Used double quotation marks for csrf form element.
Diffstat (limited to 'django/template')
-rw-r--r--django/template/defaulttags.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/django/template/defaulttags.py b/django/template/defaulttags.py
index 43c557f179..762791be31 100644
--- a/django/template/defaulttags.py
+++ b/django/template/defaulttags.py
@@ -54,7 +54,7 @@ class CsrfTokenNode(Node):
if csrf_token == 'NOTPROVIDED':
return format_html("")
else:
- return format_html("<input type='hidden' name='csrfmiddlewaretoken' value='{}'>", csrf_token)
+ return format_html('<input type="hidden" name="csrfmiddlewaretoken" value="{}">', csrf_token)
else:
# It's very probable that the token is missing because of
# misconfiguration, so we raise a warning