[1.10.x] Fixed #27270 -- Clarified a paragraph in docs/topics/forms/formsets.txt.

Thanks Kifsif for the suggestion.

Backport of 8110673aaf from master
This commit is contained in:
Tim Graham 2016-09-26 09:31:01 -04:00
parent 69839e97b9
commit dec77af525
1 changed files with 4 additions and 4 deletions

View File

@ -164,10 +164,10 @@ As we can see, ``formset.errors`` is a list whose entries correspond to the
forms in the formset. Validation was performed for each of the two forms, and
the expected error message appears for the second item.
Just like when using a normal ``Form``, each form in the formset may include
HTML attributes such as ``maxlength`` for browser validation. However, forms of
formsets won't include the ``required`` attribute as that validation may be
incorrect when adding and deleting forms.
Just like when using a normal ``Form``, each field in a formset's forms may
include HTML attributes such as ``maxlength`` for browser validation. However,
form fields of formsets won't include the ``required`` attribute as that
validation may be incorrect when adding and deleting forms.
.. method:: BaseFormSet.total_error_count()