1
0
mirror of https://github.com/django/django.git synced 2025-10-31 09:41:08 +00:00

Fixed #33622 -- Allowed customizing error messages for invalid number of forms.

Co-authored-by: Mariusz Felisiak <felisiak.mariusz@gmail.com>
This commit is contained in:
Marc Seguí Coll
2022-05-08 00:53:13 +02:00
committed by Mariusz Felisiak
parent 667105877e
commit 262fde94de
5 changed files with 100 additions and 14 deletions

View File

@@ -292,6 +292,11 @@ Forms
attributes help to identify widgets where its inputs should be grouped in a
``<fieldset>`` with a ``<legend>``.
* The :ref:`formsets-error-messages` argument for
:class:`~django.forms.formsets.BaseFormSet` now allows customizing
error messages for invalid number of forms by passing ``'too_few_forms'``
and ``'too_many_forms'`` keys.
Generic Views
~~~~~~~~~~~~~