From 2ba4278cb38f1346d70cf427bbeac71a4d1dc5ad Mon Sep 17 00:00:00 2001 From: Luke Plant Date: Fri, 6 Jul 2012 15:29:23 +0100 Subject: [PATCH] Fixed #18484 - 'display:none' on CSRF token div is redundant and causes problems with some browsers Thanks to hedleyroos for the report --- django/template/defaulttags.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/django/template/defaulttags.py b/django/template/defaulttags.py index 52d886a5a1..fb45fe722e 100644 --- a/django/template/defaulttags.py +++ b/django/template/defaulttags.py @@ -47,7 +47,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