summaryrefslogtreecommitdiff
path: root/docs/ref/forms
AgeCommit message (Collapse)Author
2023-11-28[5.0.x] Refs #34380 -- Added FORMS_URLFIELD_ASSUME_HTTPS transitional setting.Mariusz Felisiak
This allows early adoption of the new default "https". Backport of a4931cd75a1780923b02e43475ba5447df3adb31 from main.
2023-11-25[5.0.x] Refs #34380 -- Improved docs for forms.URLField.assume_scheme.Adam Johnson
Backport of 0203771b626c27c1af24cdeb0e425ccca3d19ad5 from main
2023-11-16[5.0.x] Refs #32819 -- Used auto_id instead of id_for_label as unique ↵David Smith
identifier for 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>`. Backport of 292f1ea90f90ff140617299a25884c8fda24aa64 from main
2023-10-25[5.0.x] Added missing pycon directives in various docs.Mariusz Felisiak
Backport of 718b32c6918037cfc746d7867333d79a3c887a8c from main
2023-08-30 Fixed #31262 -- Added support for mappings on model fields and ↵Nick Pope
ChoiceField's choices.
2023-08-01Fixed #32820 -- Added aria-invalid="true" to fields with errors.Gregor Jerše
Co-authored-by: Demetris Stavrou <demestav@gmail.com> Co-authored-by: David Smith <smithdc@gmail.com>
2023-07-18Added reference to TypedChoiceField in ChoiceField docs.David Sanders
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-07-03Fixed CVE-2023-36053 -- Prevented potential ReDoS in EmailValidator and ↵Mariusz Felisiak
URLValidator. Thanks Seokchan Yoon for reports.
2023-06-16Fixed #34473 -- Fixed step validation for form fields with non-zero minimum ↵Jacob Rief
value.
2023-06-09Fixed #23049 -- Added %a and %A support to Date.strftime.sarahboyce
This enables the admin to display the day as locale's abbreviated/full name if %a/%A is used in the date format.
2023-04-28Fixed #34380 -- Allowed specifying a default URL scheme in forms.URLField.Coen van der Kamp
This also deprecates "http" as the default scheme.
2023-04-03Fixed #34431 -- Improved Date/DateTimeField/TimeField.input_formats docs.Edison Wang
2023-03-24Fixed typos in docs/ref/forms/renderers.txt.Mariusz Felisiak
2023-03-24Fixed #34077 -- Added form field rendering.David Smith
2023-03-21Fixed #34388 -- Allowed using choice enumeration types directly on model and ↵T. Franzel
form fields.
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-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-18Refs #32339 -- Deprecated transitional form renderers.Mariusz Felisiak
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.
2023-01-17Refs #31026 -- Removed ability to return string when rendering ↵Mariusz Felisiak
ErrorDict/ErrorList. Per deprecation timeline.
2023-01-17Refs #32873 -- Removed settings.USE_L10N per deprecation timeline.Mariusz Felisiak
2023-01-17Removed versionadded/changed annotations for 4.1.Mariusz Felisiak
2022-12-07Refs #32339 -- Updated Form API docs to prefer as_div() output style.David Smith
2022-08-09Fixed #33842 -- Used :source: role for links to repo files on GitHub.Ramil Yanbulatov
2022-08-06Fixed typo in docs/ref/forms/renderers.txt.Mariusz Felisiak
Thanks Josh for the report.
2022-06-03Fixed documentation of Widget.id_for_label() empty return value.Swann
2022-05-17Removed versionadded/changed annotations for 4.0.Carlton Gibson
2022-05-17Refs #32339 -- Deprecated default.html form template.David Smith
Co-authored-by: Carlton Gibson <carlton.gibson@noumenal.es>
2022-05-12Fixed #32559 -- Added 'step_size’ to numeric form fields.Kapil Bansal
Co-authored-by: Jacob Rief <jacob.rief@uibk.ac.at>
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-05-03Fixed #33658 -- Doc'd ModelChoiceField.blank attribute.Alokik Vijay
Thanks Mariusz Felisiak for reviewing.
2022-04-27Refs #32339 -- Allowed renderer to specify default form and formset templates.Carlton Gibson
Co-authored-by: David Smith <smithdc@gmail.com>
2022-04-27Refs #32339 -- Added base form renderer to docs.Carlton Gibson
2022-03-30Refs #32339 -- Added use_fieldset to Widget.David
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>
2021-12-28Avoided counting attributes and methods in docs.Mariusz Felisiak
2021-12-22Refs #31026 -- Updated TemplatesSetting docs to refer to forms.David Smith
2021-12-09Refs #32338 -- Added Boundfield.legend_tag().David Smith
2021-12-02Fixed #33334 -- Alphabetized form and model fields in reference docs.Shivam Durgbuns
2021-10-06Refs #31026 -- Improved BoundField.label_tag() docs.David Smith
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-27Refs #32338 -- Made RadioSelect/CheckboxSelectMultiple render in <div> tags.David Smith
This improves accessibility for screen reader users.
2021-08-17Fixed #32964 -- Corrected 'setup'/'set up' usage in docs.Andrew Northall
2021-07-29Fixed 32956 -- Lowercased spelling of "web" and "web framework" where ↵David Smith
appropriate.