[Django] #26516: Add support for HTML5 minlength attribute on forms.CharField

23 views
Skip to first unread message

Django

unread,
Apr 18, 2016, 6:35:18 PM4/18/16
to django-...@googlegroups.com
#26516: Add support for HTML5 minlength attribute on forms.CharField
-----------------------------+--------------------
Reporter: jdufresne | Owner: nobody
Type: New feature | Status: new
Component: Forms | Version: master
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 0
Easy pickings: 0 | UI/UX: 0
-----------------------------+--------------------
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:

https://github.com/django/django/blob/df8d8d4292684d6ffa7474f1e201aed486f02b53/django/forms/fields.py#L234-L239

--
Ticket URL: <https://code.djangoproject.com/ticket/26516>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

Django

unread,
Apr 18, 2016, 8:19:42 PM4/18/16
to django-...@googlegroups.com
#26516: Add support for HTML5 minlength attribute on forms.CharField
-----------------------------+------------------------------------

Reporter: jdufresne | Owner: nobody
Type: New feature | Status: new
Component: Forms | Version: master
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0

Easy pickings: 0 | UI/UX: 0
-----------------------------+------------------------------------
Changes (by timgraham):

* needs_better_patch: => 0
* needs_docs: => 0
* needs_tests: => 0
* stage: Unreviewed => Accepted


--
Ticket URL: <https://code.djangoproject.com/ticket/26516#comment:1>

Django

unread,
Apr 18, 2016, 8:59:53 PM4/18/16
to django-...@googlegroups.com
#26516: Add support for HTML5 minlength attribute on forms.CharField
-----------------------------+------------------------------------

Reporter: jdufresne | Owner: nobody
Type: New feature | Status: new
Component: Forms | Version: master
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0

Easy pickings: 0 | UI/UX: 0
-----------------------------+------------------------------------
Changes (by jdufresne):

* has_patch: 0 => 1


Comment:

https://github.com/django/django/pull/6475

--
Ticket URL: <https://code.djangoproject.com/ticket/26516#comment:2>

Django

unread,
Apr 19, 2016, 8:54:50 AM4/19/16
to django-...@googlegroups.com
#26516: Add support for HTML5 minlength attribute on forms.CharField
-----------------------------+------------------------------------
Reporter: jdufresne | Owner: nobody
Type: New feature | Status: closed
Component: Forms | Version: master
Severity: Normal | Resolution: fixed

Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0

Easy pickings: 0 | UI/UX: 0
-----------------------------+------------------------------------
Changes (by Tim Graham <timograham@…>):

* status: new => closed
* resolution: => fixed


Comment:

In [changeset:"500e5a6886b4816740bbeedac1457b26a493d756" 500e5a68]:
{{{
#!CommitTicketReference repository=""
revision="500e5a6886b4816740bbeedac1457b26a493d756"
Fixed #26516 -- Added minlength attribute when forms.CharField.min_length
is set.
}}}

--
Ticket URL: <https://code.djangoproject.com/ticket/26516#comment:3>

Reply all
Reply to author
Forward
0 new messages