summaryrefslogtreecommitdiff
path: root/tests/forms_tests/widget_tests
AgeCommit message (Collapse)Author
2020-09-22Corrected docstring quotes in various code.Mariusz Felisiak
2020-07-10Refs #30578 -- Made SelectDateWidget.format_value() independent of USE_L10N.Claude Paroz
2020-06-01Fixed #31536 -- Fixed rendering of disabled AdminFileWidget and ↵Carles Pina
ClearableFileInput.
2020-03-24Fixed #7664 -- Allowed customizing suffixes of MultiWidget.widgets' names.David Smith
2020-03-11Fixed typo in tests/forms_tests/widget_tests/test_clearablefileinput.py ↵David Smith
docstring.
2020-01-08Fixed #31118 -- Made FileInput to avoid the required attribute when initial ↵Shubham singh
data exists.
2019-12-10Fixed #31073 -- Prevented CheckboxInput.get_context() from mutating attrs.Peter Andersen
2019-11-21Fixed #31012 -- Reverted "Fixed #29056 -- Fixed HTML5 validation of required ↵Carlton Gibson
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.
2019-10-29Used more specific unittest assertions in tests.Nick Pope
* assertIsNone()/assertIsNotNone() instead of comparing to None. * assertLess() for < comparisons. * assertIs() for 'is' expressions. * assertIsInstance() for isinstance() expressions. * rounding of assertAlmostEqual() for round() expressions. * assertIs(..., True/False) instead of comparing to True/False. * assertIs()/assertIsNot() for ==/!= comparisons. * assertNotEqual() for == comparisons. * assertTrue()/assertFalse() instead of comparing to True/False.
2019-08-07Corrected several typos in string literals and test names.Min ho Kim
2019-06-26Fixed #30578 - Made SelectDateWidget respect a custom date format when ↵Shubham Bhagat
USE_L10N is disabled.
2019-05-08Fixed #29056 -- Fixed HTML5 validation of required SelectDateWidget.Hasan Ramezani
placeholder is required for "select" with "required" attribute.
2019-04-25Fixed #30399 -- Changed django.utils.html.escape()/urlize() to use ↵Jon Dufresne
html.escape()/unescape().
2018-11-14Fixed #17210 -- Made NullBooleanSelect use unknown/true/false as query data.Basil Dubyk
2018-08-01Fixed typos in comments and docs.luz.paz
2018-07-26Refs #29600 -- Added test for datetime_safe usage in ↵Tim Graham
SelectDateWidget.value_from_datadict().
2018-04-02Fixed #29273 -- Prevented initial selection of empty choice in multiple ↵Claude Paroz
choice widgets. Regression in b52c73008a9d67e9ddbb841872dc15cdd3d6ee01.
2018-03-15Fixed #29200 -- Fixed label rendering when using RadioSelect and ↵Tim Graham
CheckboxSelectMultiple with MultiWidget.
2018-01-30Fixed #29036 -- Fixed HTML5 required validation on SelectDateWidget if the ↵Vlastimil Zíma
attribute is added by JavaScript. Thanks Tim Graham for the initial patch.
2018-01-30Added tests for SelectDateWidget.value_from_datadict().Tim Graham
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.
2017-12-05Fixed #28890 -- Removed newlines between MultiWidget's subwidgets.Nick Pope
Regression in b52c73008a9d67e9ddbb841872dc15cdd3d6ee01.
2017-09-22Refs #15667 -- Removed support for Widget.render() methods without the ↵Tim Graham
renderer argument. Per deprecation timeline.
2017-08-29Fixed #28530 -- Prevented SelectDateWidget from localizing years in output.caleb logan
2017-07-19Fixed #28414 -- Fixed ClearableFileInput rendering as a subwidget of ↵Roman Selivanov
MultiWidget.
2017-06-17Fixed #28176 -- Restored the uncasted option value in ChoiceWidget template ↵Tim Graham
context.
2017-06-17Fixed #28303 -- Prevented localization of attribute values in the DTL ↵Tim Graham
attrs.html widget template.
2017-06-02Fixed #28265 -- Prevented renderer warning on Widget.render() with **kwargs.Jon Dufresne
2017-05-03Fixed #28157 -- Fixed choice ordering in form fields with grouped and ↵Tim Graham
non-grouped options. Regression in b52c73008a9d67e9ddbb841872dc15cdd3d6ee01.
2017-04-24Removed obsolete Widget.format_output() in tests.Tim Graham
Obsolete since b52c73008a9d67e9ddbb841872dc15cdd3d6ee01.
2017-04-21Fixed #28075 -- Prevented ChoiceWidget from localizing option values.Jon Dufresne
2017-04-20Fixed #28059 -- Restored class attribute in <ul> of widgets that use ↵Tim Graham
multiple_input.html. Regression in b52c73008a9d67e9ddbb841872dc15cdd3d6ee01
2017-04-01Fixed #27866 -- Made ChoiceWidget.format_value() return a listClaude Paroz
Thanks Tim Graham for the review.
2017-03-31Fixed #27993 -- Fixed model form default fallback for SelectMultiple.heathervm
2017-03-18Fixed #27724 -- Fixed SelectDateWidget redisplay if a year isn't chosen.Adonys Alea Boffill
2017-03-18Added tests for SelectDateWidget.format_value().Adonys Alea Boffill
2017-03-14Fixed #27920 -- Restored empty RadioSelect choice producing value=""Claude Paroz
Regression in b52c73008a9d67e9ddbb841872dc15cdd3d6ee01. Thanks Tim Graham for the review.
2017-02-07Fixed #5851 -- Allowed specifying different HTML attrs for ↵Mariusz Felisiak
SplitDateTimeWidget subwidgets. Thanks Tim Graham and Nick Pope for review.
2017-02-06Fixed #27805 -- Fixed ClearableFileInput's "Clear" checkbox on model fields ↵Tim Graham
with a default.
2017-01-26Refs #23919, #27778 -- Removed obsolete mentions of unicode.Vytis Banaitis
2017-01-25Refs #23919 -- Replaced super(ClassName, self) with super().chillaranand
2017-01-23Fixed #27759 -- Prevented forms attrs.html template from rendering False attrs.Jon Dufresne
Regression in b52c73008a9d67e9ddbb841872dc15cdd3d6ee01.
2017-01-23Fixed #27761 -- Fixed quote location in multiple_input.html forms templates.Jon Dufresne
2017-01-19Refs #23919 -- Stopped inheriting from object to define new style classes.Simon Charette
2017-01-18Refs #23919 -- Removed python_2_unicode_compatible decorator usageClaude Paroz
2017-01-18Refs #23919 -- Removed encoding preambles and future importsClaude Paroz
2017-01-13Fixed #27723 -- Set MultiWidget's subwidgets input type from attrs argument.Mariusz Felisiak
Regression in b52c73008a9d67e9ddbb841872dc15cdd3d6ee01.
2017-01-10Fixed #27712 -- Reallowed Input widget's attrs argument to set the input type.Mariusz Felisiak
Regression in b52c73008a9d67e9ddbb841872dc15cdd3d6ee01.
2017-01-06Refs #15667 -- Prevented newlines in attrs.html widget rendering.Dmitry
Removed the trailing newline from widget attrs.html template. The solution may be revisited by fixing refs #9198 but not for Django 1.11. Thanks Dmitry Ivanchenko for the report and Preston Timmons for advice.