summaryrefslogtreecommitdiff
path: root/django/forms/formsets.py
AgeCommit message (Collapse)Author
2025-07-23Refs #36500 -- Rewrapped long docstrings and block comments via a script.django-bot
Rewrapped long docstrings and block comments to 79 characters + newline using script from https://github.com/medmunds/autofix-w505.
2025-07-23Refs #36500 -- Shortened some long docstrings and comments.Mike Edmunds
Manually reformatted some long docstrings and comments that would be damaged by the to-be-applied autofixer script, in cases where editorial judgment seemed necessary for style or wording changes.
2024-11-20Fixed #35913 -- Prevented formset name suffix 'FormFormSet'.antoliny0919
2024-05-14Fixed #29942 -- Restored source file linking in docs by using the Sphinx ↵Joachim Jablon
linkcode ext. Co-authored-by: David Smith <smithdc@gmail.com> Co-authored-by: Natalia <124304+nessita@users.noreply.github.com>
2023-07-24Fixed #34532 -- Made formset_factory() respect Form's default_renderer.Christopher Cave-Ayland
Co-authored-by: David Smith <smithdc@gmail.com>
2023-02-20Fixed #34349 -- Fixed FormSet.empty_form crash when deleting extra forms is ↵Laurens Verhoeven
disabled.
2023-01-17Refs #32339 -- Changed default form and formset rendering style to div-based.Mariusz Felisiak
Per deprecation timeline. This also removes "django/forms/default.html" and "django/forms/formsets/default.html" templates.
2022-09-09Fixed #33995 -- Fixed FormSet.empty_form crash when empty_permitted is ↵DevilsAutumn
passed to form_kwargs.
2022-08-02Fixed #33876, Refs #32229 -- Made management forms render with div.html ↵Carlton Gibson
template. Thanks to Claude Paroz for the report.
2022-05-10Fixed #33622 -- Allowed customizing error messages for invalid number of forms.Marc Seguí Coll
Co-authored-by: Mariusz Felisiak <felisiak.mariusz@gmail.com>
2022-05-05Fixed #32339 -- Added div.html form template.David Smith
2022-04-27Refs #32339 -- Allowed renderer to specify default form and formset templates.Carlton Gibson
Co-authored-by: David Smith <smithdc@gmail.com>
2022-02-07Refs #33476 -- Reformatted code with Black.django-bot
2021-12-21Refs #24121 -- Added __repr__() to BaseFormSet.Baptiste Mispelon
2021-12-10Moved ManagementForm's fields to class attributes.Adam Johnson
This helps introspection, and it follows the comment in BaseForm.__init__() to avoid changing base_fields. Thanks to Silvio Gutierrez and Baptiste Mispelon for investigating.
2021-09-20Fixed #31026 -- Switched form rendering to template engine.David Smith
Thanks Carlton Gibson, Keryn Knight, Mariusz Felisiak, and Nick Pope for reviews. Co-authored-by: Johannes Hoppe <info@johanneshoppe.com>
2021-08-03Fixed #32984 -- Allowed customizing a deletion field widget in formsets.Ties Jan Hefting
2021-07-15Fixed #32905 -- Added CSS class for non-form errors of formsets.Ties Jan Hefting
2020-11-05Fixed #22276 -- Fixed crash when formset management form is invalid.Jon Dufresne
Co-authored-by: Patryk Zawadzki <patrys@room-303.com>
2020-11-03Refs #29113 -- Simplified formset validation.Claude Paroz
Thanks Nick Pope for review and complement.
2020-10-26Simplifed formset iteration using enumerate().Jon Dufresne
2020-10-21Fixed #13060 -- Improved error message when ManagementForm data is missing.manav014
2020-09-28Fixed #32042 -- Improved error messages for the number of submitted forms in ↵meghanabhange
formsets.
2020-06-24Fixed #9061 -- Allowed FormSets to disable deleting extra forms.David Smith
Thanks to Dan Ward for the initial patch.
2020-06-05Fixed #20347 -- Allowed customizing the maximum number of instantiated forms ↵David Smith
in formsets. Co-authored-by: ethurgood <ethurgood@gmail.com>
2019-04-24Removed unnecessary assignments in various code.Jon Dufresne
2019-03-21Fixed #29956 -- Allowed overriding an order field widget in formsets.Hasan Ramezani
2019-01-02Used 4 space hanging indent for dictionaries.Tim Graham
Thanks Mariusz Felisiak for auditing.
2018-02-05Fixed #29113 -- Simplified django.forms.formsets.all_valid() and clarified ↵Tim Graham
docstring.
2017-09-07Reverted "Fixed #27818 -- Replaced try/except/pass with contextlib.suppress()."Tim Graham
This reverts commit 550cb3a365dee4edfdd1563224d5304de2a57fda because try/except performs better.
2017-07-24Fixed #28321 -- Prevented FormSet.full_clean() from adding errors from ↵Windson yang
deleted forms.
2017-07-12Merged nested if statements in BaseFormSet.is_valid().Windsooon
2017-06-28Fixed #27818 -- Replaced try/except/pass with contextlib.suppress().Mads Jensen
2017-05-27Fixed #28226 -- Replaced use of str.join() with concatenation.Tom
2017-04-28Fixed #28130 -- Fixed formset min_num validation with initial, unchanged forms.Tim Graham
Regression in f5c6295797b8332134fd89e0209a18a1d1d45e0c.
2017-02-20Refs #27656 -- Updated django.forms/http docstring verbs according to PEP 257.Anton Samarchyan
2017-02-07Converted usage of ugettext* functions to their gettext* aliasesClaude Paroz
Thanks Tim Graham for the review.
2017-01-25Refs #23919 -- Replaced super(ClassName, self) with super().chillaranand
2017-01-19Refs #23919 -- Removed str() conversion of type and method __name__.Simon Charette
2017-01-19Refs #23919 -- Removed __nonzero__() methods (for Python 2).Simon Charette
Thanks Tim for the review.
2017-01-19Refs #23919 -- Stopped inheriting from object to define new style classes.Simon Charette
2017-01-18Refs #23919 -- Removed most of remaining six usageClaude Paroz
Thanks Tim Graham for the review.
2017-01-18Refs #23919 -- Removed six.<various>_types usageClaude Paroz
Thanks Tim Graham and Simon Charette for the reviews.
2017-01-18Refs #23919 -- Removed python_2_unicode_compatible decorator usageClaude Paroz
2017-01-18Refs #23919 -- Removed encoding preambles and future importsClaude Paroz
2016-12-01Fixed #27119 -- Cached BaseFormSet.management_form propertyClaude Paroz
Thanks Tim Graham for the review.
2016-08-10Fixed #26844 -- Made formset's validate_min validation ignore empty forms.Andrew Nester
2016-04-21Fixed #22383 -- Added support for HTML5 required attribute on required form ↵Jon Dufresne
fields.
2015-06-05Added release notes for feature added in fe21fb81Russell Keith-Magee
2015-06-04Fixed #18166 -- Added form_kwargs support to formsets.Sergei Maertens
By specifying form_kwargs when instantiating the formset, or overriding the `get_form_kwargs` method on a formset class, you can pass extra keyword arguments to the underlying `Form` instances. Includes tests and documentation update.