1
0
mirror of https://github.com/django/django.git synced 2025-03-25 16:50:45 +00:00

31 Commits

Author SHA1 Message Date
Tim Graham
0615601498 [1.11.x] Fixed #28157 -- Fixed choice ordering in form fields with grouped and non-grouped options.
Regression in b52c73008a9d67e9ddbb841872dc15cdd3d6ee01.

Backport of d302e2c09c281e6b1e187f704f656e5e79e69246 from master
2017-05-03 07:22:00 -04:00
Tim Graham
6cbfaba178 [1.11.x] Removed obsolete Widget.format_output() in tests.
Obsolete since b52c73008a9d67e9ddbb841872dc15cdd3d6ee01.

Backport of 851874fe0a5dd8f99c763134df0bbaca6f03d17a from master
2017-04-24 13:42:00 -04:00
Jon Dufresne
1442e29983 [1.11.x] Fixed #28075 -- Prevented ChoiceWidget from localizing option values.
Backport of 581879a510e58841e5780a5d1fdb4995733d2036 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 b52c73008a9d67e9ddbb841872dc15cdd3d6ee01

Backport of af1f986360dc6bb6e75e960dbc191707541128ac from master
2017-04-20 11:07:54 -04:00
Claude Paroz
06d32f689e [1.11.x] Fixed #27866 -- Made ChoiceWidget.format_value() return a list
Thanks Tim Graham for the review.
Backport of e487ffd3f0f9931e7c18bfbd47cf1e6b059ddc41 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 7d1e23775344cc3dead03bd4af45f4fdf134b819 from master
2017-03-31 10:10:30 -04:00
Claude Paroz
70c5b8db42 [1.11.x] Refs #27920 -- Added missing encoding preamble on widget test file 2017-03-14 20:18:51 +01:00
Claude Paroz
d8e90040e9 [1.11.x] Fixed #27920 -- Restored empty RadioSelect choice producing value=""
Regression in b52c73008a9d67e9ddbb841872dc15cdd3d6ee01.
Thanks Tim Graham for the review.
Backport of 540ae68a5cc6339c72375fad9b04dc48f3af4c93 from master.
2017-03-14 18:27:19 +01:00
Tim Graham
2b17e4770b [1.11.x] Fixed #27805 -- Fixed ClearableFileInput's "Clear" checkbox on model fields with a default.
Backport of 4353640ea9495d58fabd0357253b82de3b069408 from master
2017-02-06 20:55:47 -05:00
Jon Dufresne
9e9d0f8ef7 [1.11.x] Fixed #27759 -- Prevented forms attrs.html template from rendering False attrs.
Regression in b52c73008a9d67e9ddbb841872dc15cdd3d6ee01.

Backport of 5fa390ee81c5a963fc4476e8de6c1e5e1fc57e22 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 88183117c28a8d669054e9064e7bd4de19ebcd28 from master
2017-01-23 07:45:22 -05:00
Mariusz Felisiak
974d14534c Fixed #27723 -- Set MultiWidget's subwidgets input type from attrs argument.
Regression in b52c73008a9d67e9ddbb841872dc15cdd3d6ee01.
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 b52c73008a9d67e9ddbb841872dc15cdd3d6ee01.
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
Diego Martín
abd434059e Fixed #27250 -- Removed 'for ="..."' from CheckboxSelectMultiple's <label>. 2016-11-22 11:48:37 -05:00
za
321e94fa41 Refs #27392 -- Removed "Tests that", "Ensures that", etc. from test docstrings. 2016-11-10 21:30:21 -05: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
Jon Dufresne
fab46ce6f5 Fixed #27037 -- Prevented required attribute on ClearableFileInput when initial data exists. 2016-08-12 13:59:01 -04:00
Jon Dufresne
50e299dbfb Fixed #26928 -- Changed forms' checked attribute to HTML5 boolean style. 2016-08-04 19:16:54 -04:00
Jon Dufresne
4f336f6652 Fixed #26747 -- Used more specific assertions in the Django test suite. 2016-06-16 14:19:18 -04:00
Tim Graham
55c3133df8 Simplified a ClearableFileInput test. 2016-05-14 10:31:32 -04:00
Tim Graham
86573861a9 Refs #15667 -- Removed choices argument from some RendererMixin methods.
RendererMixin will soon be removed but this removal and the corresponding
test changes stand on their own.
2016-04-28 18:48:52 -04:00
Berker Peksag
043383e3f3 Fixed #24727 -- Prevented ClearableFileInput from masking exceptions on Python 2 2016-02-15 22:51:46 +02:00
jpic
926e90132d Fixed #25731 -- Removed unused choices kwarg for Select.render() 2016-02-02 18:03:19 -05:00
Hasan
253adc2b8a Refs #26022 -- Used context manager version of assertRaisesMessage in tests. 2016-01-29 13:03:39 -05:00
Tim Graham
7cb3a48843 Fixed #25410 -- Fixed empty ClearableFileInput crash on Python 2.
Reverted "Fixes #24727 -- Prevented ClearableFileInput from masking
exceptions on Python 2" and added a regression test.

This reverts commit 5c412dd8a724b263489c1bd7a2fea381460665d7.
2015-09-23 10:26:19 -04:00
Preston Timmons
4c30fa905d Rewrote form widget tests as proper unittests.
This is preparation for landing the template-based widget rendering
patch and goes a long way to making these tests more useful for future
development. The old doctest heritage is strong here.
2015-08-31 23:03:55 -05:00