Opened 9 years ago
Closed 9 years ago
#26516 closed New feature (fixed)
Add support for HTML5 minlength attribute on forms.CharField
Reported by: | Jon Dufresne | Owned by: | nobody |
---|---|---|---|
Component: | Forms | Version: | dev |
Severity: | Normal | Keywords: | |
Cc: | Triage Stage: | Accepted | |
Has patch: | yes | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
Just as there is support for the maxlength
attribute in rendered forms, Django should add the minlength
attribute when it is defined:
Description of attribute:
https://developer.mozilla.org/en-US/docs/Web/HTML/Element/Input#attr-minlength
Can add alongside maxlength
attribute:
Change History (3)
comment:1 by , 9 years ago
Triage Stage: | Unreviewed → Accepted |
---|
comment:2 by , 9 years ago
Has patch: | set |
---|
Note:
See TracTickets
for help on using tickets.
https://github.com/django/django/pull/6475