NB: **form** may include HTML attributes such as maxlength.
What astonishes me: this is not the form that may include maxlength. This
is a **field in Django and input tag in HTML**. Well, a form can contain
maxlength neither in Django nor in HTML as far as I know.
Example:
{{{
class ArticleForm(forms.Form):
title = forms.CharField(max_length=5)
}}}
Which results in:
{{{
<table>
<tr>
<th>
<label for="id_form-0-title">Title:</label>
</th>
<td>
<input id="id_form-0-title" maxlength="5" name="form-0-title"
type="text" value="Test" />
</td>
</tr>
</table>
}}}
Offered wording: Just like when using a normal Form, **each form field in
each form in the formset** may include HTML attributes such as maxlength
for browser validation.
--
Ticket URL: <https://code.djangoproject.com/ticket/27270>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* status: new => assigned
* needs_better_patch: => 0
* needs_tests: => 0
* owner: nobody => Kifsif
* needs_docs: => 0
* type: Uncategorized => Cleanup/optimization
--
Ticket URL: <https://code.djangoproject.com/ticket/27270#comment:1>
* owner: Kifsif => (none)
* status: assigned => new
--
Ticket URL: <https://code.djangoproject.com/ticket/27270#comment:2>
Comment (by Emett Speer):
This seems like a good update to me. It does make the wording on this much
more clear then it currently is.
--
Ticket URL: <https://code.djangoproject.com/ticket/27270#comment:3>
* owner: (none) => Tim Graham
* status: new => assigned
* stage: Unreviewed => Accepted
--
Ticket URL: <https://code.djangoproject.com/ticket/27270#comment:4>
* status: assigned => closed
* resolution: => fixed
Comment:
In [changeset:"dec77af525268a02bf964f498fefc1c27b4ebbe5" dec77af5]:
{{{
#!CommitTicketReference repository=""
revision="dec77af525268a02bf964f498fefc1c27b4ebbe5"
[1.10.x] Fixed #27270 -- Clarified a paragraph in
docs/topics/forms/formsets.txt.
Thanks Kifsif for the suggestion.
Backport of 8110673aafd48e9345c17458638c10fb12ab4f2a from master
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/27270#comment:5>
Comment (by Tim Graham <timograham@…>):
In [changeset:"8110673aafd48e9345c17458638c10fb12ab4f2a" 8110673]:
{{{
#!CommitTicketReference repository=""
revision="8110673aafd48e9345c17458638c10fb12ab4f2a"
Fixed #27270 -- Clarified a paragraph in docs/topics/forms/formsets.txt.
Thanks Kifsif for the suggestion.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/27270#comment:6>