Closed PieroV closed 8 years ago
You want to remove the attributes from the widget, not the form field.
Interesting. In fact, I wonder if this is something that Django could cope with when rendering the hidden input. It might be worth creating a ticket in Django.
Yep, you're right, I didn't thought it affects validation too.
Sorry and thanks anyway :simple_smile:
I'm closing this PR as I opened https://code.djangoproject.com/ticket/27015
W3 validator complains about maxlength attributes on hidden fields, so I've removed maxlength and minlength from security_hash object.