summaryrefslogtreecommitdiff
path: root/docs/topics/forms
AgeCommit message (Collapse)Author
2024-04-22Fixed incorrect blockquotes in docs/topics/forms/index.txt.minusf
2024-03-08Corrected code-block directives in topics/forms/formsets.txt.Mitchina
2024-03-04Fixed #35261 -- Corrected Media JS example of object-based paths in docs.Leandro de Souza
`rel` attribute is not valid on `<link>` tags.
2024-01-26Applied Black's 2024 stable style.Mariusz Felisiak
https://github.com/psf/black/releases/tag/24.1.0
2023-11-29Refs #25778 -- Updated some links and references to HTTPS.Adam Johnson
2023-11-16Refs #32819 -- Used auto_id instead of id_for_label as unique identifier for ↵David Smith
the field. `id_for_label` is blank for widgets with multiple inputs such as radios and multiple checkboxes. Therefore , `help_text` for fields using these widgets cannot currently be associated using `aria-describedby`. `id_for_label` is being used as a guard to avoid incorrectly adding `aria-describedby` to those widgets. This change uses `auto_id` as the unique identified for the fields `help_text`. A guard is added to avoid incorrectly adding `aria-describedby` to inputs by checking the widget's `use_fieldset` attribute. Fields rendered in a `<fieldset>` should have `aria-describedby` added to the `<fieldset>` and not every `<input>`.
2023-10-30Fixed typo in docs/topics/forms/index.txt.Mariusz Felisiak
2023-09-18Removed versionadded/changed annotations for 4.2.Mariusz Felisiak
This also removes remaining versionadded/changed annotations for older versions.
2023-08-30 Fixed #31262 -- Added support for mappings on model fields and ↵Nick Pope
ChoiceField's choices.
2023-08-23Improved formset docs by using a set instead of a list in the custom ↵Luca Allulli
validation example.
2023-07-22Fixed formatting typo in docs/topics/forms/index.txt.Carlton Gibson
2023-07-06Fixed #32819 -- Established relationship between form fields and their help ↵Gregor Jerše
text. Thanks Nimra for the initial patch. Thanks Natalia Bidart, Thibaud Colas, David Smith, and Mariusz Felisiak for reviews.
2023-03-24Fixed #34077 -- Added form field rendering.David Smith
2023-03-01Fixed #34140 -- Reformatted code blocks in docs with blacken-docs.django-bot
2023-02-28Refs #34140 -- Corrected rst code-block and various formatting issues in docs.Joseph Victor Zammit
2023-02-15Refs #32339 -- Doc'd setting a form's template_name is recomended over using ↵David Smith
as_* methods.
2023-02-15Refs #32339 -- Updated docs to reflect default <div> style form rendering in ↵David Smith
Django 5.0. Follow up to 98756c685ee173bbd43f21ed0553f808be835ce5.
2023-02-15Refs #32339 -- Doc'd BaseFormSet.as_div()David Smith
2023-02-10Refs #34140 -- Applied rst code-block to non-Python examples.Carlton Gibson
Thanks to J.V. Zammit, Paolo Melchiorre, and Mariusz Felisiak for reviews.
2023-01-17Removed versionadded/changed annotations for 4.1.Mariusz Felisiak
2022-11-24Adjusted BaseFormSet.get_form_kwargs example in docs.Riccardo Magliocchetti
2022-08-30Refs #30947 -- Changed tuples to lists where appropriate.Alex Morega
2022-08-08Fixed #31721 -- Allowed ModelForm meta to specify form fields.Kamil Turek
2022-05-31Fixed docs build with sphinxcontrib-spelling 7.5.0+.Mariusz Felisiak
sphinxcontrib-spelling 7.5.0+ includes captions of figures in the set of nodes for which the text is checked.
2022-05-17Removed versionadded/changed annotations for 4.0.Carlton Gibson
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-05-04Refs #32339 -- Restructured outputting HTML form docs.Carlton Gibson
In the topic doc, promoted the Reusable form templates section. In the reference, re-grouped and promoted the default __str__() rendering path, and then gathered the various as_*() helpers subsequently. Thanks to David Smith for review.
2022-04-28Removed hyphen from pre-/re- prefixes.David
"prepopulate", "preload", and "preprocessing" are already in the spelling_wordlist. This also removes hyphen from double "e" combinations with "pre" and "re", e.g. preexisting, preempt, reestablish, or reenter. See also: - https://ahdictionary.com/word/search.html?q=rerun - https://ahdictionary.com/word/search.html?q=recreate - https://ahdictionary.com/word/search.html?q=predetermined - https://ahdictionary.com/word/search.html?q=reuse - https://ahdictionary.com/word/search.html?q=reopening
2022-04-27Refs #32339 -- Allowed renderer to specify default form and formset templates.Carlton Gibson
Co-authored-by: David Smith <smithdc@gmail.com>
2022-03-30Refs #32339 -- Added use_fieldset to Widget.David
2022-03-17Added missing backticks to function names.Mariusz Felisiak
2022-02-10Fixed #29490 -- Added support for object-based Media CSS and JS paths.Claude Paroz
2022-02-03Improved example of using a custom queryset in Model formsets docs.Mike Lissner
2022-01-27Fixed #26142 -- Allowed model formsets to prevent new object creation.vgolubev
Thanks Jacob Walls, David Smith, and Mariusz Felisiak for reviews. Co-authored-by: parth <parthvin@gmail.com>
2022-01-22Stopped including type="text/css" attributes for CSS link tags.Claude Paroz
2022-01-12Alphabetized field attributes in form topic docs.David Smith
2021-12-28Avoided counting attributes and methods in docs.Mariusz Felisiak
2021-09-22Fixed #33128 -- Corrected possessive 's usage in FormSet docs.Joel Farthing
2021-09-20Removed versionadded/changed annotations for 3.2.Mariusz Felisiak
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-29Fixed 32956 -- Lowercased spelling of "web" and "web framework" where ↵David Smith
appropriate.
2021-07-15Fixed #32905 -- Added CSS class for non-form errors of formsets.Ties Jan Hefting
2021-05-17Refs #32720 -- Updated various links in docs to avoid redirects and use HTTPS.Nick Pope
2021-01-14Refs #31369 -- Removed models.NullBooleanField per deprecation timeline.Mariusz Felisiak
2020-12-23Removed forms-MAX_NUM_FORMS POST data in docsJon Dufresne
The field is ignored server-side and only exists as a client-side convenience. Removing it slightly simplifies the documentation and avoids some distractions. Added note:: for MIN_NUM_FORMS/MAX_NUM_FORMS in Understanding the management form section. Co-authored-by: Carlton Gibson <carlton.gibson@noumenal.es>
2020-12-15Added backticks to code literals in various docs.Jon Dufresne
2020-11-17Fixed #32199 -- Doc'd JSONField in ModelForm field mapping.sage
2020-11-05Fixed #22276 -- Fixed crash when formset management form is invalid.Jon Dufresne
Co-authored-by: Patryk Zawadzki <patrys@room-303.com>