summaryrefslogtreecommitdiff
path: root/tests/forms_tests/field_tests
AgeCommit message (Collapse)Author
2021-07-21[3.2.x] Fixed #32949 -- Restored invalid number handling in ↵yakimka
DecimalField.validate(). 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. Backport of c542d0a07237033225c1d57337ca9474a00648f2 from main
2021-05-04[3.2.x] Fixed CVE-2021-31542 -- Tightened path & file name sanitation in ↵Florian Apolloner
file uploads.
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
2017-06-03Fixed #28192 -- Required passing optional form field args as keyword args.Claude Paroz
2017-06-03Refs #28192 -- Fixed documentation of ChoiceField choices requirementClaude Paroz
Thanks Tim Graham for noticing the issue.
2017-06-01Fixed #28242 -- Moved ImageField file extension validation to the form field.Manatsawin Hanmongkolchai
2017-05-31Fixed a forms test after updated translations.Tim Graham
2017-05-24Refs #27804 -- Used subTest() in several tests.Bruno Alla
2017-04-24Removed obsolete Widget.format_output() in tests.Tim Graham
Obsolete since b52c73008a9d67e9ddbb841872dc15cdd3d6ee01.
2017-04-07Fixed #22654 -- Broken decimal validationRaphael Michel
2017-02-17Fixed #27308 -- Fixed BytesWarnings in the test suite.Tim Graham
2017-02-09Refs #23919 -- Removed default 'utf-8' argument for str.encode()/decode().Tim Graham
2017-01-25Refs #23919 -- Replaced super(ClassName, self) with super().chillaranand
2017-01-20Refs #23919 -- Removed django.utils._os.upath()/npath()/abspathu() usage.Tim Graham
These functions do nothing on Python 3.
2017-01-20Refs #23919 -- Simplified assertRaisesRegex()'s that accounted for Python 2.Tim Graham
2017-01-19Refs #23919 -- Stopped inheriting from object to define new style classes.Simon Charette
2017-01-18Refs #23919 -- Removed six.<various>_types usageClaude Paroz
Thanks Tim Graham and Simon Charette for the reviews.