mirror of https://github.com/django/django.git
Fixed #18484 -- Removed the div around the csrf token input
This commit is contained in:
parent
22742e4ac4
commit
fa2e28ccc4
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue