summaryrefslogtreecommitdiff
path: root/tests/forms_tests
Commit message (Collapse)AuthorAgeFilesLines
* [3.0.x] Fixed #32110 -- Doc'd and tested enumerations for ChoiceField.choices.Claude Paroz2020-10-171-0/+12
| | | | Backport of 7f85498eef1d8fcc52e4fb70df8041f5452d405a from master
* [3.0.x] Fixed #31073 -- Prevented CheckboxInput.get_context() from mutating ↵Peter Andersen2019-12-111-0/+5
| | | | | | attrs. Backport of 02eff7ef60466da108b1a33f1e4dc01eec45c99d from master
* [3.0.x] Fixed #31012 -- Reverted "Fixed #29056 -- Fixed HTML5 validation of ↵Carlton Gibson2019-11-211-40/+0
| | | | | | | | | | | | | required SelectDateWidget." This reverts commit f038214d917c982613f5a15db8dfe325b1f7479b. The initial issue was incorrect. Django 2.2, and before, did not generate invalid HTML as reported. With f03821 in place invalid HTML was generated. Thanks to Kevin Brown for follow-up report and investigation. Backport of ee4a19053a32d41cdd79e087b1968980804ce658 from master
* [3.0.x] Fixed #30839 -- Fixed Field.__deepcopy__() so forms don't share ↵Hasan Ramezani2019-10-081-0/+11
| | | | | | error messages. Backport of a28d1b38e55cf588cfaae97de6a575d5c9f90a96 from master
* Corrected several typos in string literals and test names.Min ho Kim2019-08-071-1/+1
|
* Improved error message when index in __getitem__() is invalid.Jon Dufresne2019-07-231-0/+9
|
* Fixed #30400 -- Improved typography of user facing strings.Jon Dufresne2019-06-282-2/+2
| | | | Thanks Claude Paroz for assistance with translations.
* Fixed #30578 - Made SelectDateWidget respect a custom date format when ↵Shubham Bhagat2019-06-262-2/+17
| | | | USE_L10N is disabled.
* Fixed LiveWidgetTests.test_textarea_trailing_newlines() crash on Chrome 75+.Mariusz Felisiak2019-06-181-1/+1
|
* Fixed #29056 -- Fixed HTML5 validation of required SelectDateWidget.Hasan Ramezani2019-05-081-0/+40
| | | | placeholder is required for "select" with "required" attribute.
* Fixed #30399 -- Changed django.utils.html.escape()/urlize() to use ↵Jon Dufresne2019-04-253-7/+10
| | | | html.escape()/unescape().
* Fixed #30358 -- Removed redundant assertion in ↵Krisjanis Vaiders2019-04-131-1/+0
| | | | FormsUtilsTestCase.test_error_dict_copy().
* Used a picklable argument for a subTest.Carlton Gibson2019-03-211-1/+1
|
* Fixed #29956 -- Allowed overriding an order field widget in formsets.Hasan Ramezani2019-03-211-0/+26
|
* Simplified forms_tests.tests.test_formsets.Mariusz Felisiak2019-03-121-168/+95
|
* Fixed #29459 -- Initialized form data/files with empty MultiValueDicts.Andra Denis Ionescu2019-03-051-0/+5
|
* Fixed #30179 -- Fixed form Media merging when pairwise merging is insufficient.Matthias Kestenholz2019-02-271-52/+69
| | | | Thanks gasman for the tests, and codingjoe and timgraham for the review.
* Fixed #30153 -- Fixed incorrect form Media asset ordering after three way merge.Matthias Kestenholz2019-02-091-0/+30
| | | | Delaying merging assets as long as possible avoids introducing incorrect relative orderings that cause a broken final result.
* Used 4 space hanging indent for dictionaries.Tim Graham2019-01-021-2/+8
| | | Thanks Mariusz Felisiak for auditing.
* Updated test URL patterns to use path() and re_path().Tim Graham2018-12-311-2/+2
|
* Fixed #17210 -- Made NullBooleanSelect use unknown/true/false as query data.Basil Dubyk2018-11-142-43/+106
|
* Refs #28909 -- Simplifed code using unpacking generalizations.Sergey Fedoseev2018-09-281-1/+1
|
* Refs #29426 -- Made UUIDField render values with dashes.Tim Graham2018-08-181-1/+6
|
* Fixed #29623 -- Fixed translation failure of DurationField's "overflow" ↵Tim Graham2018-08-081-0/+10
| | | | error message.
* Fixed typos in comments and docs.luz.paz2018-08-011-1/+1
|
* Refs #29600 -- Added test for datetime_safe usage in ↵Tim Graham2018-07-261-0/+6
| | | | SelectDateWidget.value_from_datadict().
* Fixed #29363 -- Added SimpleTestCase.assertWarnsMessage().Morgan Aubert2018-05-091-8/+2
|
* Fixed #29375 -- Removed empty action attribute on HTML forms.CHI Cheng2018-05-022-18/+18
|
* Fixed #29284 -- Made ImageField render with accept="image/*"' HTML attribute.safu92018-04-041-2/+24
|
* Fixed #29273 -- Prevented initial selection of empty choice in multiple ↵Claude Paroz2018-04-022-5/+9
| | | | | | choice widgets. Regression in b52c73008a9d67e9ddbb841872dc15cdd3d6ee01.
* Fixed hanging indentation in various code.Mariusz Felisiak2018-03-162-5/+6
|
* Fixed #29200 -- Fixed label rendering when using RadioSelect and ↵Tim Graham2018-03-152-1/+19
| | | | CheckboxSelectMultiple with MultiWidget.
* Consolidated ModelChoiceField tests.François Freitag2018-03-012-29/+2
|
* Fixed #28171 -- Added an exception if Form's empty_permitted and ↵Herbert Parentes Fortes Neto2018-02-151-3/+11
| | | | use_required_attribute arguments conflict.
* Fixed imports per isort 4.3.1.Tim Graham2018-02-021-1/+2
| | | | Partially reverted 9bcf73d788866bc93f8248cb2e9d601ecbc4b50c.
* Fixed imports per isort 4.3.0.Mariusz Felisiak2018-02-011-2/+1
|
* Fixed #29036 -- Fixed HTML5 required validation on SelectDateWidget if the ↵Vlastimil Zíma2018-01-301-26/+26
| | | | | | attribute is added by JavaScript. Thanks Tim Graham for the initial patch.
* Added tests for SelectDateWidget.value_from_datadict().Tim Graham2018-01-301-0/+19
|
* Fixed #29038 -- Removed closing slash from HTML void tags.Jon Dufresne2018-01-2132-817/+817
|
* Fixed #29041 -- Changed SelectMultiple's multiple attribute to HTML5 boolean ↵Jon Dufresne2018-01-205-26/+26
| | | | syntax.
* Added tests for django.forms.formsets.all_valid().Tim Graham2018-01-121-1/+41
|
* Fixed #29006 -- Fixed DecimalField.clean() crash on sNaN values.Fabio Bonelli2018-01-101-0/+1
|
* Reduced redundancy in DecimalField tests with subTest().Tim Graham2018-01-101-14/+12
|
* Fixed #28882 -- Fixed cleaning of disabled MultiValueFields.Tim Graham2018-01-051-0/+15
| | | | Thanks avalanchy for the initial patch.
* Fixed #28874 -- Prevented double escaping of errors on hidden form fields.Daniil2017-12-111-0/+21
|
* Fixed #28890 -- Removed newlines between MultiWidget's subwidgets.Nick Pope2017-12-051-0/+7
| | | | Regression in b52c73008a9d67e9ddbb841872dc15cdd3d6ee01.
* Fixed #28474 -- Made DurationField raise ValidationError for inputs that ↵Srinivas Reddy Thatiparthy2017-10-251-0/+12
| | | | raised OverflowError.
* Fixed #28562 -- Fixed DecimalValidator handling of positive exponent ↵Josh Schneier2017-09-271-4/+5
| | | | scientific notation.
* Refs #15667 -- Removed support for Widget.render() methods without the ↵Tim Graham2017-09-221-35/+0
| | | | | | renderer argument. Per deprecation timeline.
* Fixed #28555 -- Made CharField convert whitespace-only values to the ↵Josh Schneier2017-09-051-0/+23
| | | | empty_value when strip is enabled.