Tim Graham
0b59ea3343
[1.10.x] Fixed #27186 -- Fixed model form default fallback for MultiWidget, FileInput, SplitDateTimeWidget, SelectDateWidget, and SplitArrayWidget.
...
Thanks Matt Westcott for the review.
Backport of 3507d4e773aa9ff2336e7230ba231c4ba6eb568f from master
2016-09-22 13:07:23 -04:00
Jon Dufresne
d8cda352b1
[1.10.x] Fixed #27037 -- Prevented required attribute on ClearableFileInput when initial data exists.
...
Backport of fab46ce6f5a0a58c4e5e39c9e5e412702beb4a64 from master
2016-08-12 13:59:23 -04:00
Jon Dufresne
13d60298ea
[1.10.x] Fixed #26747 -- Used more specific assertions in the Django test suite.
...
Backport of 4f336f66523001b009ab038b10848508fd208b3b from master
2016-06-16 14:21:14 -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