From 98019df855fb8fb93e4e9505afeedcad29da3125 Mon Sep 17 00:00:00 2001 From: CHI Cheng Date: Thu, 3 May 2018 16:57:18 +1000 Subject: Used double quotation marks for csrf form element. --- django/template/defaulttags.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'django') 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("", csrf_token) + return format_html('', csrf_token) else: # It's very probable that the token is missing because of # misconfiguration, so we raise a warning -- cgit v1.3