summaryrefslogtreecommitdiff
path: root/tests/forms_tests/field_tests
AgeCommit message (Collapse)Author
2023-02-01[4.2.x] Refs #33476 -- Applied Black's 2023 stable style.David Smith
Black 23.1.0 is released which, as the first release of the year, introduces the 2023 stable style. This incorporates most of last year's preview style. https://github.com/psf/black/releases/tag/23.1.0 Backport of 097e3a70c1481ee7b042b2edd91b2be86fb7b5b6 from main
2022-05-12Fixed #32559 -- Added 'step_size’ to numeric form fields.Kapil Bansal
Co-authored-by: Jacob Rief <jacob.rief@uibk.ac.at>
2022-03-24Refs #32365 -- Removed internal uses of utils.timezone.utc alias.Carlton Gibson
Remaining test case ensures that uses of the alias are mapped canonically by the migration writer.
2022-02-07Refs #33476 -- Refactored code to strictly match 88 characters line length.Mariusz Felisiak
2022-02-07Refs #33476 -- Reformatted code with Black.django-bot
2022-02-03Refs #32559 -- Added selenium test for FloatField client-side validation.Carlton Gibson
step="any" is required for non-integer values. See: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/number#step Covers behaviour added in 7ec2a21be15af5b2c7513482c3bcfdd1e12782ed.
2021-12-20Fixed #33367 -- Fixed URLValidator crash in some edge cases.mendespedro
2021-12-20Fixed #33368 -- Fixed parse_duration() crash on invalid separators for ↵mendespedro
decimal fractions.
2021-12-16Used subTest() in forms.URLField() tests.Mariusz Felisiak
2021-11-05Fixed #33235 -- Removed "for = ..." from MultiWidget's <label>.David Smith
This improves accessibility for screen reader users.
2021-09-14Fixed #32873 -- Deprecated settings.USE_L10N.Claude Paroz
Co-authored-by: Mariusz Felisiak <felisiak.mariusz@gmail.com>
2021-08-04Fixed #29205 -- Corrected rendering of required attributes for ↵Jacob Walls
MultiValueField subfields.
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-06-28Fixed #32807 -- Fixed JSONField crash when redisplaying None values.Dan Strokirk
Thanks to Alex Hill for the initial patch.
2021-05-04Fixed CVE-2021-31542 -- Tightened path & file name sanitation in file uploads.Florian Apolloner
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-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-05-20Removed unused variable in test_datetimefield_clean_input_formats.David Smith
2020-05-08Fixed #12990, Refs #27694 -- Added JSONField model field.sage
Thanks to Adam Johnson, Carlton Gibson, Mariusz Felisiak, and Raphael Michel for mentoring this Google Summer of Code 2019 project and everyone else who helped with the patch. Special thanks to Mads Jensen, Nick Pope, and Simon Charette for extensive reviews. Co-authored-by: Mariusz Felisiak <felisiak.mariusz@gmail.com>
2020-04-28Changed django.forms.ValidationError imports to ↵François Freitag
django.core.exceptions.ValidationError. Co-Authored-By: Mariusz Felisiak <felisiak.mariusz@gmail.com>
2020-04-22Completed test coverage for forms.RegexField.David Smith
2020-04-09Increased test coverage for forms.ImageField.to_python().David Smith
2020-04-07Completed test coverage for forms.DurationField.to_python().David Smith
2020-04-07Fixed typo in tests/forms_tests/field_tests/test_imagefield.py test names.David Smith
2020-01-06Fixed #11385 -- Made forms.DateTimeField accept ISO 8601 date inputs.Claude Paroz
Thanks José Padilla for the initial patch, and Carlton Gibson for the review.
2020-01-03Reorganized forms.DateTimeField tests.Claude Paroz
2019-10-29Refs #30908 -- Added test for nonexistent path in forms.FilePathField.Hasan Ramezani
2019-06-28Fixed #30400 -- Improved typography of user facing strings.Jon Dufresne
Thanks Claude Paroz for assistance with translations.
2019-06-26Fixed #30578 - Made SelectDateWidget respect a custom date format when ↵Shubham Bhagat
USE_L10N is disabled.
2018-08-18Refs #29426 -- Made UUIDField render values with dashes.Tim Graham
2018-08-08Fixed #29623 -- Fixed translation failure of DurationField's "overflow" ↵Tim Graham
error message.
2018-04-04Fixed #29284 -- Made ImageField render with accept="image/*"' HTML attribute.safu9
2018-02-02Fixed imports per isort 4.3.1.Tim Graham
Partially reverted 9bcf73d788866bc93f8248cb2e9d601ecbc4b50c.
2018-02-01Fixed imports per isort 4.3.0.Mariusz Felisiak
2018-01-21Fixed #29038 -- Removed closing slash from HTML void tags.Jon Dufresne
2018-01-20Fixed #29041 -- Changed SelectMultiple's multiple attribute to HTML5 boolean ↵Jon Dufresne
syntax.
2018-01-10Fixed #29006 -- Fixed DecimalField.clean() crash on sNaN values.Fabio Bonelli
2018-01-10Reduced redundancy in DecimalField tests with subTest().Tim Graham
2018-01-05Fixed #28882 -- Fixed cleaning of disabled MultiValueFields.Tim Graham
Thanks avalanchy for the initial patch.
2017-10-25Fixed #28474 -- Made DurationField raise ValidationError for inputs that ↵Srinivas Reddy Thatiparthy
raised OverflowError.
2017-09-27Fixed #28562 -- Fixed DecimalValidator handling of positive exponent ↵Josh Schneier
scientific notation.
2017-09-05Fixed #28555 -- Made CharField convert whitespace-only values to the ↵Josh Schneier
empty_value when strip is enabled.
2017-08-12Fixed #28201 -- Added ProhibitNullCharactersValidator and used it on ↵Alejandro Zamora
CharField form field.
2017-07-29Used assertRaisesMessage() to test Django's error messages.Mads Jensen
2017-07-29Fixed #28264 -- Made FilePathField sort files and directories when ↵Srinivas Reddy Thatiparthy
recursive=True.
2017-07-17Created a dedicated test directory for FilePathField tests.Srinivas Reddy Thatiparthy
2017-07-14Fixed #28387 -- Fixed has_changed() for disabled form fields that subclass it.Srinivas Reddy Thatiparthy