From fa2e28ccc45d383ad9b1398565a9d106a80fd1db Mon Sep 17 00:00:00 2001 From: Claude Paroz Date: Sat, 13 Oct 2012 11:30:09 +0200 Subject: [PATCH] Fixed #18484 -- Removed the div around the csrf token input --- 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 ea1dd0281e..fa2e840cbf 100644 --- a/django/template/defaulttags.py +++ b/django/template/defaulttags.py @@ -48,7 +48,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