summaryrefslogtreecommitdiff
path: root/django/forms
AgeCommit message (Collapse)Author
2017-09-13Removed unnecessary parens in various code.Mariusz Felisiak
2017-09-13Merged isinstance() calls.Mariusz Felisiak
2017-09-07Reverted "Fixed #27818 -- Replaced try/except/pass with contextlib.suppress()."Tim Graham
This reverts commit 550cb3a365dee4edfdd1563224d5304de2a57fda because try/except performs better.
2017-09-05Fixed #28555 -- Made CharField convert whitespace-only values to the ↵Josh Schneier
empty_value when strip is enabled.
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-12Fixed #28201 -- Added ProhibitNullCharactersValidator and used it on ↵Alejandro Zamora
CharField form field.
2017-08-09Simplified Float/DecimalField.validate() with math.isfinite().Srinivas Reddy Thatiparthy
2017-08-07Removed unnecessary else in SelectDateWidget.id_for_lable().Srinivas Reddy Thatiparthy
2017-07-31Avoided creating temporary lists for obtaining the first item.Sergey Fedoseev
2017-07-29Avoided creation of temporary sets.Sergey Fedoseev
2017-07-29Fixed #28264 -- Made FilePathField sort files and directories when ↵Srinivas Reddy Thatiparthy
recursive=True.
2017-07-24Fixed #28321 -- Prevented FormSet.full_clean() from adding errors from ↵Windson yang
deleted forms.
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-07-14Fixed #28387 -- Fixed has_changed() for disabled form fields that subclass it.Srinivas Reddy Thatiparthy
2017-07-12Merged nested if statements in BaseFormSet.is_valid().Windsooon
2017-07-11Fixed #22229 -- Added primary key validation to ↵Jon Dufresne
BaseModelFormSet._construct_form().
2017-06-30Fixed #28345 -- Applied limit_choices_to during ModelForm.__init__().Jon Dufresne
field_for_model() now has an additional keyword argument, apply_limit_choices_to, allowing it to continue to be used to create form fields dynamically after ModelForm.__init__() is called. Thanks Tim Graham for the review.
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-06-17Fixed #28303 -- Prevented localization of attribute values in the DTL ↵Tim Graham
attrs.html widget template.
2017-06-10Refs #23919 -- Replaced stray super(ClassName, self) with super().Tom
2017-06-03Fixed #28192 -- Required passing optional form field args as keyword args.Claude Paroz
2017-06-03Refs #28192 -- Made MultiValueField/ComboField fields argument required as ↵Tim Graham
documented.
2017-06-02Fixed #28265 -- Prevented renderer warning on Widget.render() with **kwargs.Jon Dufresne
2017-06-01Refs #23968 -- Removed unnecessary lists, generators, and tuple calls.Jon Dufresne
2017-06-01Fixed #28242 -- Moved ImageField file extension validation to the form field.Manatsawin Hanmongkolchai
2017-05-27Fixed #28249 -- Removed unnecessary dict.keys() calls.Jon Dufresne
iter(dict) is equivalent to iter(dict.keys()).
2017-05-27Fixed #28226 -- Replaced use of str.join() with concatenation.Tom
2017-05-27Fixed #27922 -- Added ErrorDict.get_json_data().Tim Heap
2017-05-03Fixed #28159 -- Fixed BaseInlineFormSet._construct_form() crash when using ↵Alexander Kavanaugh
save_as_new. Regression in 4a246a02bdcbc13b15480c014f51cb0682af7c1e.
2017-05-03Fixed #28157 -- Fixed choice ordering in form fields with grouped and ↵Tim Graham
non-grouped options. Regression in b52c73008a9d67e9ddbb841872dc15cdd3d6ee01.
2017-04-28Fixed #28130 -- Fixed formset min_num validation with initial, unchanged forms.Tim Graham
Regression in f5c6295797b8332134fd89e0209a18a1d1d45e0c.
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-20Fixed #28059 -- Restored class attribute in <ul> of widgets that use ↵Tim Graham
multiple_input.html. Regression in b52c73008a9d67e9ddbb841872dc15cdd3d6ee01
2017-04-17Fixed #28058 -- Restored empty BoundFields evaluating to True.Tim Graham
Regression in b52c73008a9d67e9ddbb841872dc15cdd3d6ee01
2017-04-01Fixed #27989 -- Preserved empty QueryDicts for form's data/files args.Stefan Wehrmeyer
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-22Fixed #27975 -- Fixed crash if ModelChoiceField's queryset=None.James Beith
Regression in 9153d8fbd6385db9f48793662de789fc3d686841.
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-20Fixed #27957 -- Removed technical terms from ↵Jon Dufresne
InlineForeignKeyField/ModelMultipleChoiceField error messages.
2017-03-18Fixed #27724 -- Fixed SelectDateWidget redisplay if a year isn't chosen.Adonys Alea Boffill
2017-03-15Refs #27563 -- Fixed ModelChoiceField.__deepcopy__() so forms don't share a ↵Tim Graham
queryset cache. Thanks Luke Benstead for the report Simon Charettes for the fix.