I have a problem with django csrf middleware ... when I use the csrf_token template tag, I get this output:
<div style='display:none'><input type='hidden' name='csrfmiddlewaretoken' value='6bda3605af31dd8595d2a67d0dda827b' /></div>
but I want this output (HTML is not xHTML:
<div style='display:none'><input type='hidden' name='csrfmiddlewaretoken' value='6bda3605af31dd8595d2a67d0dda827b'></div>
I tried to see the code in the django.middleware.csrf.CsrfViewMiddleware file, but without success :(
So how can I change the output of fo csrf_token?
tanks
source
share