summaryrefslogtreecommitdiff
path: root/django/forms/widgets.py
AgeCommit message (Collapse)Author
2019-02-27[2.2.x] Fixed #30179 -- Fixed form Media merging when pairwise merging is ↵Matthias Kestenholz
insufficient. Thanks gasman for the tests, and codingjoe and timgraham for the review. Backport of 231b513926f2bfd71f08058ce5013bd81678ac01 from master.
2019-02-09[2.2.x] Fixed #30153 -- Fixed incorrect form Media asset ordering after ↵Matthias Kestenholz
three way merge. Delaying merging assets as long as possible avoids introducing incorrect relative orderings that cause a broken final result. Backport of 959d0c078a1c903cd1e4850932be77c4f0d2294d from master.
2018-11-14Fixed #17210 -- Made NullBooleanSelect use unknown/true/false as query data.Basil Dubyk
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-03-03Condensed some widgets code.Daniel Hahler
2018-02-26Refs #28909 -- Simplifed code using unpacking generalizations.Mariusz Felisiak
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-30Fixed #29089 -- Avoided redundant date parsing in ↵Tim Graham
SelectDateWidget.format_value().
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-18Removed unnecessary microsecond truncation in SplitDateTimeWidget.Jon Dufresne
The microseconds are already truncated by the TimeInput subwidget.
2018-01-12Fixed #28996 -- Simplified some boolean constructs and removed trivial ↵Дилян Палаузов
continue statements.
2017-12-11Fixed #28909 -- Simplified code using tuple/list/set/dict unpacking.Nick Pope
2017-12-08Simplified widgets.Select._choice_has_empty_value().Sergey Fedoseev
2017-12-07Fixed #28906 -- Removed unnecessary bool() calls.Tim Graham
2017-11-07Fixed #28769 -- Replaced 'x if x else y' with 'x or y'.Дилян Палаузов
2017-09-07Reverted "Fixed #27818 -- Replaced try/except/pass with contextlib.suppress()."Tim Graham
This reverts commit 550cb3a365dee4edfdd1563224d5304de2a57fda because try/except performs better.
2017-08-31Removed useless itertools.chain() call in ChoiceWidget.optgroups().Sergey Fedoseev
2017-08-29Fixed #28530 -- Prevented SelectDateWidget from localizing years in output.caleb logan
2017-08-26Added Media.__repr__().Collin Anderson
It makes it easier to debug MediaOrderConflictWarnings (refs #28377).
2017-08-07Removed unnecessary else in SelectDateWidget.id_for_lable().Srinivas Reddy Thatiparthy
2017-07-20Fixed #28377 -- Made combining form Media retain relative asset order.Johannes Hoppe
Thanks Florian Apolloner, Mariusz Felisiak, and Tim Graham for reviews.
2017-07-19Fixed #28414 -- Fixed ClearableFileInput rendering as a subwidget of ↵Roman Selivanov
MultiWidget.
2017-06-28Fixed #27818 -- Replaced try/except/pass with contextlib.suppress().Mads Jensen
2017-06-17Fixed #28176 -- Restored the uncasted option value in ChoiceWidget template ↵Tim Graham
context.
2017-05-27Fixed #28249 -- Removed unnecessary dict.keys() calls.Jon Dufresne
iter(dict) is equivalent to iter(dict.keys()).
2017-05-03Fixed #28157 -- Fixed choice ordering in form fields with grouped and ↵Tim Graham
non-grouped options. Regression in b52c73008a9d67e9ddbb841872dc15cdd3d6ee01.
2017-04-27Refs #27795 -- Replaced many force_text() with str()Claude Paroz
Thanks Tim Graham for the review.
2017-04-26Replaced temporary lists used for passing arguments with iterables.Jon Dufresne
2017-04-21Removed unneeded is True|False from bool expressions in widgets.py.Jon Dufresne
2017-04-21Fixed #28075 -- Prevented ChoiceWidget from localizing option values.Jon Dufresne
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-21Refs #27919 -- Changed Widget.get_context() attrs kwarg to an arg.Tim Graham
2017-03-21Refs #27919 -- Passed ChoiceWidget.create_option() kwargs as expected.Tim Graham
2017-03-18Fixed #27724 -- Fixed SelectDateWidget redisplay if a year isn't chosen.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-23Refs #23919 -- Used yield from.Vytis Banaitis
2017-02-20Refs #27656 -- Updated django.forms/http docstring verbs according to PEP 257.Anton Samarchyan
2017-02-20Fixed #27850 -- Made RelatedFieldWidgetWrapper call render() of the wrapped ↵Collin Anderson
widget.
2017-02-07Fixed #5851 -- Allowed specifying different HTML attrs for ↵Mariusz Felisiak
SplitDateTimeWidget subwidgets. Thanks Tim Graham and Nick Pope for review.
2017-02-07Converted usage of ugettext* functions to their gettext* aliasesClaude Paroz
Thanks Tim Graham for the review.
2017-02-06Fixed #27805 -- Fixed ClearableFileInput's "Clear" checkbox on model fields ↵Tim Graham
with a default.
2017-01-31Fixed #27758 -- Reallowed AdvancedModelIterator pattern after template ↵Jon Dufresne
widget rendering.
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-23Replaced dict() usage with dict literals.Jon Dufresne
Literals are faster and more idiomatic.
2017-01-23Removed ChoiceWidget.render() as it duplicates parent implementation.Jon Dufresne
2017-01-20Refs #23919 -- Removed unneeded force_str callsClaude Paroz