mirror of
https://github.com/Hopiu/django.git
synced 2026-04-28 18:54:47 +00:00
Fixed #18484 -- Removed the div around the csrf token input
This commit is contained in:
parent
22742e4ac4
commit
fa2e28ccc4
1 changed files with 1 additions and 1 deletions
|
|
@ -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 a new issue