Alexander Kavanaugh
008ba77dfd
[1.11.x] Fixed #28159 -- Fixed BaseInlineFormSet._construct_form() crash when using save_as_new.
...
Regression in 4a246a02bd
.
Backport of 362fba87c9
from master
2017-05-03 08:59:41 -04:00
Tim Graham
0615601498
[1.11.x] Fixed #28157 -- Fixed choice ordering in form fields with grouped and non-grouped options.
...
Regression in b52c73008a
.
Backport of d302e2c09c
from master
2017-05-03 07:22:00 -04:00
Tim Graham
e93135b067
[1.11.x] Fixed #28130 -- Fixed formset min_num validation with initial, unchanged forms.
...
Regression in f5c6295797
.
Backport of f04a404917
from master
2017-04-28 09:32:52 -04:00
Jon Dufresne
1442e29983
[1.11.x] Fixed #28075 -- Prevented ChoiceWidget from localizing option values.
...
Backport of 581879a510
from master
2017-04-21 12:29:20 -04:00
Tim Graham
2f358d32ec
[1.11.x] Fixed #28059 -- Restored class attribute in <ul> of widgets that use multiple_input.html.
...
Regression in b52c73008a
Backport of af1f986360
from master
2017-04-20 11:07:54 -04:00
Tim Graham
844ae40a7c
[1.11.x] Fixed #28058 -- Restored empty BoundFields evaluating to True.
...
Regression in b52c73008a
Backport of c09bf8d767
from master
2017-04-17 08:56:15 -04:00
Claude Paroz
523a8032c8
[1.11.x] Refs #27866 -- Adapted backport for Python 2 compatibility
2017-04-01 12:29:34 +02:00
Claude Paroz
06d32f689e
[1.11.x] Fixed #27866 -- Made ChoiceWidget.format_value() return a list
...
Thanks Tim Graham for the review.
Backport of e487ffd3f0
from master.
2017-04-01 12:26:49 +02:00
heathervm
ff0c6b83e5
[1.11.x] Fixed #27993 -- Fixed model form default fallback for SelectMultiple.
...
Backport of 7d1e237753
from master
2017-03-31 10:10:30 -04:00
James Beith
6963564ecc
[1.11.x] Fixed #27975 -- Fixed crash if ModelChoiceField's queryset=None.
...
Regression in 9153d8fbd6385db9f48793662de789fc3d686841.
Backport of 216bb2e8fb
from master
2017-03-22 08:57:02 -04:00
Tim Graham
2bd152b46f
[1.11.x] Refs #27919 -- Changed Widget.get_context() attrs kwarg to an arg.
...
Backport of 075e93c16a
and
93d0770104
from master
2017-03-21 10:38:15 -04:00
Tim Graham
524f1e7051
[1.11.x] Refs #27919 -- Passed ChoiceWidget.create_option() kwargs as expected.
...
Backport of 6ff356e891
from master
2017-03-21 09:54:37 -04:00
Tim Graham
a95616944b
[1.11.x] Refs #27563 -- Fixed ModelChoiceField.__deepcopy__() so forms don't share a queryset cache.
...
Thanks Luke Benstead for the report Simon Charettes for the fix.
Backport of 44f9241c48
from master
2017-03-15 12:55:05 -04:00
Claude Paroz
d8e90040e9
[1.11.x] Fixed #27920 -- Restored empty RadioSelect choice producing value=""
...
Regression in b52c73008a
.
Thanks Tim Graham for the review.
Backport of 540ae68a5c
from master.
2017-03-14 18:27:19 +01:00
Tim Graham
d53fc7614d
[1.11.x] Refs #23151 -- Removed RegexField's unused error_message parameter.
...
Should have been removed in b6ea1961eb
.
Backport of afcf44c101
from master
2017-02-20 19:09:43 -05:00
Collin Anderson
808d33c1bf
[1.11.x] Fixed #27850 -- Made RelatedFieldWidgetWrapper call render() of the wrapped widget.
...
Backport of fb7e0e01af
from master
2017-02-20 08:48:17 -05:00
Tim Graham
2b17e4770b
[1.11.x] Fixed #27805 -- Fixed ClearableFileInput's "Clear" checkbox on model fields with a default.
...
Backport of 4353640ea9
from master
2017-02-06 20:55:47 -05:00
Jon Dufresne
52e9c1c8b7
[1.11.x] Fixed #27758 -- Reallowed AdvancedModelIterator pattern after template widget rendering.
...
Backport of 6d8979f4c2
from master
2017-01-31 09:43:31 -05:00
Jon Dufresne
783afda70a
[1.11.x] Replaced dict() usage with dict literals.
...
Literals are faster and more idiomatic.
Backport of 0d74c41981
from master
2017-01-23 19:14:43 -05:00
Jon Dufresne
706b30fc37
[1.11.x] Replaced "not var is ..." with "is not" in attrs.html.
...
Backport of f0573aad4b
from master
2017-01-23 13:14:41 -05:00
Jon Dufresne
9e9d0f8ef7
[1.11.x] Fixed #27759 -- Prevented forms attrs.html template from rendering False attrs.
...
Regression in b52c73008a
.
Backport of 5fa390ee81
from master
2017-01-23 09:28:25 -05:00
Jon Dufresne
6969100595
[1.11.x] Fixed #27761 -- Fixed quote location in multiple_input.html forms templates.
...
Backport of 88183117c2
from master
2017-01-23 07:45:22 -05:00
Jon Dufresne
e4dab20a27
[1.11.x] Removed ChoiceWidget.render() as it duplicates parent implementation.
...
Backport of ecd5944666
from master
2017-01-23 07:33:42 -05:00
Mariusz Felisiak
974d14534c
Fixed #27723 -- Set MultiWidget's subwidgets input type from attrs argument.
...
Regression in b52c73008a
.
2017-01-13 06:34:33 -05:00
Mariusz Felisiak
6872ce2266
Fixed #27712 -- Reallowed Input widget's attrs argument to set the input type.
...
Regression in b52c73008a
.
2017-01-10 11:38:27 -05:00
Dmitry
12cefee5d8
Refs #15667 -- Prevented newlines in attrs.html widget rendering.
...
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.
2017-01-06 19:11:32 -05:00
Josef Rousek
aaecf038ca
Fixed #27370 -- Prevented Select widget from using 'required' with a non-empty first value.
2016-12-28 10:45:22 -05:00
Preston Timmons
b52c73008a
Fixed #15667 -- Added template-based widget rendering.
...
Thanks Carl Meyer and Tim Graham for contributing to the patch.
2016-12-27 17:50:10 -05:00
Illia Volochii
4a51ba228b
Fixed #27642 -- Made forms.utils.flatatt() omit 'None' values from attrs.
2016-12-27 09:42:17 -05:00
Hiroki Kiyohara
181f492ad0
Fixed #27416 -- Prevented ModelFormSet from creating objects for invalid PKs in data.
2016-12-06 13:06:58 -05:00
Jon Dufresne
6abd6c598e
Fixed #27563 -- Moved "apply limit_choices_to" code from BaseModelForm to fields_for_model().
2016-12-02 08:40:24 -08:00
Claude Paroz
d49551bc26
Fixed #27119 -- Cached BaseFormSet.management_form property
...
Thanks Tim Graham for the review.
2016-12-01 20:17:25 +01:00
Diego Martín
abd434059e
Fixed #27250 -- Removed 'for ="..."' from CheckboxSelectMultiple's <label>.
2016-11-22 11:48:37 -05:00
Kenneth Veldman
8618a7eaa1
Fixed #27431 -- Prevented disabled form fields from appearing as changed.
2016-11-11 06:57:57 -05:00
Leila20
656654fb5b
Fixed typo in django/forms/widgets.py comment.
2016-11-06 11:55:33 +01:00
Michal Petrucha
09da1e79de
Fixed #27369 -- Prevented widgets from being shared between form field instances.
2016-11-06 07:16:56 +01:00
Tim Graham
87c5e7efeb
Refs #27186 -- Fixed model form default fallback for CheckboxSelectMultiple.
2016-09-30 14:49:50 -04:00
Tim Graham
3507d4e773
Fixed #27186 -- Fixed model form default fallback for MultiWidget, FileInput, SplitDateTimeWidget, SelectDateWidget, and SplitArrayWidget.
...
Thanks Matt Westcott for the review.
2016-09-22 12:20:58 -04:00
Jon Dufresne
2c716c1dc7
Fixed #27256 -- Changed Select widget's selected attribute to use HTML5 boolean syntax.
2016-09-21 15:12:13 -07:00
Chris Lamb
9027e6c8a3
Fixed #27235 -- Removed some usage of mutable default arguments.
2016-09-16 15:48:08 -04:00
Claude Paroz
2ced2f785d
Replaced smart_* by force_* calls whenever possible
...
The smart_* version should only be used when a lazy string should keep
its lazy status.
2016-09-03 13:46:41 +02:00
Alex Hill
d9c083cfee
Refs #27039 -- Fixed regression with field defaults in prefixed forms.
2016-09-01 09:13:21 -04:00
Tim Graham
4bc6b93994
Fixed #27039 -- Fixed empty data fallback to model field default in model forms.
2016-08-24 17:50:10 -04:00
Jon Dufresne
f5c6d3c8d9
Fixed #27068 -- Unified form field initial data retrieval.
2016-08-18 17:55:47 -07:00
Jon Dufresne
6b842c5998
Made BoundField.initial use cached_property.
...
Follow up to fab46ce6f5
.
2016-08-12 12:43:24 -07:00
Jon Dufresne
fab46ce6f5
Fixed #27037 -- Prevented required attribute on ClearableFileInput when initial data exists.
2016-08-12 13:59:01 -04:00
Andrew Nester
f5c6295797
Fixed #26844 -- Made formset's validate_min validation ignore empty forms.
2016-08-10 13:03:04 -04:00
Marcin Nowak
74bb013cc1
Fixed #26905 -- Allowed using MultiValueDict-like objects as form data.
2016-08-09 19:46:24 -04:00
Alex Hill
74105b2636
Fixed #27002 -- Prevented double query when rendering ModelChoiceField.
2016-08-08 13:41:05 -04:00
Claude Paroz
3569ba0333
Fixed #27015 -- Prevented HTML-invalid minlength/maxlength on hidden inputs
2016-08-06 10:22:17 +02:00