summaryrefslogtreecommitdiff
path: root/tests/forms_tests
AgeCommit message (Collapse)Author
2022-08-03[4.0.x] Fixed warnings per flake8 5.0.0.Mariusz Felisiak
Backport of c18861804feb6a97afbeabb51be748dd60a04458 from main.
2022-05-02[4.0.x] Refs #31026 -- Changed @jinja2_tests imports to be relative.Jacob Walls
Backport of 03a648811615cb623affc2d79dccd4b05919319e from main
2022-03-26[4.0.x] Reverted "Fixed forms_tests.tests.test_renderers with Jinja 3.1.0+."Mariusz Felisiak
This reverts commit 1d9d082acf6e152c06833bb9698f88d688b95e40. Backport of abfdb4d7f384fb06ed9b7ca37b548542df7b5dda from main
2022-03-25[4.0.x] Fixed forms_tests.tests.test_renderers with Jinja 3.1.0+.Mariusz Felisiak
See https://github.com/pallets/jinja/pull/1621. Backport of 1d9d082acf6e152c06833bb9698f88d688b95e40 from main
2022-02-08[4.0.x] Refs #33476 -- Refactored code to strictly match 88 characters line ↵Mariusz Felisiak
length. Backport of 7119f40c9881666b6f9b5cf7df09ee1d21cc8344 from main.
2022-02-08[4.0.x] Refs #33476 -- Reformatted code with Black.django-bot
Backport of 9c19aff7c7561e3a82978a272ecdaad40dda5c00 from main.
2022-02-03[4.0.x] Refs #33476 -- Refactored problematic code before reformatting by Black.Mariusz Felisiak
In these cases Black produces unexpected results, e.g. def make_random_password( self, length=10, allowed_chars='abcdefghjkmnpqrstuvwxyz' 'ABCDEFGHJKLMNPQRSTUVWXYZ' '23456789', ): or cursor.execute(""" SELECT ... """, [table name], ) Backport of c5cd8783825b5f6384417dac5f3889b4210b7d08 from main.
2022-01-07[4.0.x] Fixed #33419 -- Restored marking forms.Field.help_text as HTML safe.David
Regression in 456466d932830b096d39806e291fe23ec5ed38d5. Thanks Matt Westcott for the report. Backport of 4c60c3edff4312303e1021fca47ed52c2152d285 from main
2021-12-06[4.0.x] Updated translations from Transifex.Mariusz Felisiak
This also fixes related i18n tests. Co-authored-by: Claude Paroz <claude@2xlibre.net>
2021-09-29[4.0.x] Fixed #33134 -- Fixed recursion depth error when rendering Form with ↵David Smith
BoundFields. Regression in 456466d932830b096d39806e291fe23ec5ed38d5. Backport of 4884a87e022056eda10534c13d74e49b8cdda632 from main
2021-09-24[4.0.x] Fixed #33130 -- Restored form errors to be a dict.Jaap Roes
Regression in 456466d932830b096d39806e291fe23ec5ed38d5. Backport of 7fe9b6f6df16fa875fe360a1c7d0ac53fcf08a53 from main
2021-09-21[4.0.x] Refs #31026 -- Fixed forms_tests if Jinja2 is not installed.Mariusz Felisiak
Backport of 881a4799114fccefbc0f56c6524110ede2682e16 from main
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-09-17Refs #31026 -- Added extra form render tests.David Smith
2021-09-17Refs #31026 -- Moved Template tests to separate class.David Smith
2021-09-14Fixed #32873 -- Deprecated settings.USE_L10N.Claude Paroz
Co-authored-by: Mariusz Felisiak <felisiak.mariusz@gmail.com>
2021-08-27Refs #32338 -- Made RadioSelect/CheckboxSelectMultiple render in <div> tags.David Smith
This improves accessibility for screen reader users.
2021-08-10Refs #29205 -- Added MultiValueField test for rendering of optional subfields.David Smith
2021-08-04Fixed #29205 -- Corrected rendering of required attributes for ↵Jacob Walls
MultiValueField subfields.
2021-08-04Fixed #32855 -- Corrected BoundWidget.id_for_label() with custom auto_id.Jacob Rief
2021-08-03Fixed #32984 -- Allowed customizing a deletion field widget in formsets.Ties Jan Hefting
2021-08-03Fixed typos in tests/forms_tests/tests/test_formsets.py.Ties Jan Hefting
2021-07-30Refs #32956 -- Updated words ending in -wards.David Smith
AP styleguide: Virtually none of the words ending with -wards end with an s.
2021-07-21Fixed #32949 -- Restored invalid number handling in DecimalField.validate().yakimka
DecimalField must itself validate() values, such as NaN, which cannot be passed to validators, such as MaxValueValidator, during the run_validators() phase. Regression in cc3d24d7d577f174937a0744d886c4c7123cfa85.
2021-07-16Fixed #32924 -- Changed BaseForm.get_initial_for_field() to remove ↵Chris Jerdonek
microseconds when needed.
2021-07-16Refs #32924 -- Changed test_initial_datetime_values() to use subTests.Chris Jerdonek
2021-07-16Refs #32924 -- Changed test_get_initial_for_field() to use subTests.Chris Jerdonek
2021-07-15Fixed #32920 -- Changed BaseForm to access its values through bound fields.Chris Jerdonek
2021-07-15Fixed #32905 -- Added CSS class for non-form errors of formsets.Ties Jan Hefting
2021-06-28Fixed #32807 -- Fixed JSONField crash when redisplaying None values.Dan Strokirk
Thanks to Alex Hill for the initial patch.
2021-06-22Refs #32338 -- Removed 'for ="..."' from RadioSelect's <label>.David Smith
This improves accessibility for screen reader users. Co-authored-by: Thibaud Colas <thibaudcolas@gmail.com>
2021-05-12Refs #32738 -- Added sanitize_strftime_format() to replace datetime_safe.Nick Pope
2021-05-04Fixed CVE-2021-31542 -- Tightened path & file name sanitation in file uploads.Florian Apolloner
2021-01-26Fixed #32347 -- Made ModelChoiceField include the value in ValidationError ↵Jerin Peter George
for invalid_choice.
2021-01-14Refs #8760 -- Removed "list" message for ModelMultipleChoiceField per ↵Mariusz Felisiak
deprecation timeline.
2020-11-05Fixed #22276 -- Fixed crash when formset management form is invalid.Jon Dufresne
Co-authored-by: Patryk Zawadzki <patrys@room-303.com>
2020-10-21Fixed #13060 -- Improved error message when ManagementForm data is missing.manav014
2020-10-17Fixed #32110 -- Doc'd and tested enumerations for ChoiceField.choices.Claude Paroz
2020-10-09Fixed #32080 -- Fixed displaying Unicode chars in forms.JSONField and ↵Qi Zhao
read-only JSONField values in admin.
2020-09-28Fixed #32042 -- Improved error messages for the number of submitted forms in ↵meghanabhange
formsets.
2020-09-25Refs #28009 -- Added empty_value tests for CharField subclasses.David Smith
2020-09-25Added assertions for cleaning None values for forms.JSONField and ↵David Smith
forms.UUIDField.
2020-09-24Fixed #30563 -- Optimized form Media by removing duplicated assets when adding.David Smith
2020-09-24Refs #30563 -- Added tests for merging form Media with different ordering.David Smith
2020-09-22Corrected docstring quotes in various code.Mariusz Felisiak
2020-07-27Fixed #31806 -- Made validators include the value in ValidationErrors.Jon Dufresne
2020-07-27Refs #31806 -- Added tests for including the value in some ValidationErrors.Jon Dufresne
2020-07-10Refs #30578 -- Made SelectDateWidget.format_value() independent of USE_L10N.Claude Paroz
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>