mirror of
https://github.com/django/django.git
synced 2025-08-03 10:34:04 +00:00
Fixed #20403 -- Ignore forms marked for deletion when validating max_num.
This commit is contained in:
parent
266c0bb23e
commit
4280217f31
3 changed files with 22 additions and 2 deletions
|
@ -283,7 +283,8 @@ Validating the number of forms in a formset
|
|||
|
||||
If ``validate_max=True`` is passed to
|
||||
:func:`~django.forms.formsets.formset_factory`, validation will also check
|
||||
that the number of forms in the data set is less than or equal to ``max_num``.
|
||||
that the number of forms in the data set, minus those marked for
|
||||
deletion, is less than or equal to ``max_num``.
|
||||
|
||||
>>> from django.forms.formsets import formset_factory
|
||||
>>> from myapp.forms import ArticleForm
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue