summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorClaude Paroz <claude@2xlibre.net>2012-10-13 11:30:09 +0200
committerClaude Paroz <claude@2xlibre.net>2012-10-13 11:30:09 +0200
commitfa2e28ccc45d383ad9b1398565a9d106a80fd1db (patch)
tree53b351ca3fba74a90b445833c2264b6a43f10ed0
parent22742e4ac40274e8c91bdad9b8be251da50a3753 (diff)
Fixed #18484 -- Removed the div around the csrf token input
-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 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("<div><input type='hidden' name='csrfmiddlewaretoken' value='{0}' /></div>", csrf_token)
+ return format_html("<input type='hidden' name='csrfmiddlewaretoken' value='{0}' />", csrf_token)
else:
# It's very probable that the token is missing because of
# misconfiguration, so we raise a warning