Daniel Hahler
|
683341db43
|
Condensed some widgets code.
|
2018-03-03 13:35:09 -05:00 |
Mariusz Felisiak
|
074a2f7f58
|
Refs #28909 -- Simplifed code using unpacking generalizations.
|
2018-02-26 18:23:31 +01:00 |
Vlastimil Zíma
|
fbc3c29e7c
|
Fixed #29036 -- Fixed HTML5 required validation on SelectDateWidget if the attribute is added by JavaScript.
Thanks Tim Graham for the initial patch.
|
2018-01-30 19:09:31 -05:00 |
Tim Graham
|
5538729e4e
|
Fixed #29089 -- Avoided redundant date parsing in SelectDateWidget.format_value().
|
2018-01-30 18:11:05 -05:00 |
Jon Dufresne
|
ff05de760c
|
Fixed #29038 -- Removed closing slash from HTML void tags.
|
2018-01-21 02:09:10 -05:00 |
Jon Dufresne
|
47d238b696
|
Fixed #29041 -- Changed SelectMultiple's multiple attribute to HTML5 boolean syntax.
|
2018-01-20 11:19:06 -05:00 |
Jon Dufresne
|
90ca9412e4
|
Removed unnecessary microsecond truncation in SplitDateTimeWidget.
The microseconds are already truncated by the TimeInput subwidget.
|
2018-01-18 11:23:06 -05:00 |
Дилян Палаузов
|
a38ae914d8
|
Fixed #28996 -- Simplified some boolean constructs and removed trivial continue statements.
|
2018-01-12 12:44:50 -05:00 |
Nick Pope
|
d13a9e44de
|
Fixed #28909 -- Simplified code using tuple/list/set/dict unpacking.
|
2017-12-11 07:08:45 -05:00 |
Sergey Fedoseev
|
23a27f2c03
|
Simplified widgets.Select._choice_has_empty_value().
|
2017-12-08 08:14:25 +05:00 |
Tim Graham
|
2b81faab25
|
Fixed #28906 -- Removed unnecessary bool() calls.
|
2017-12-07 17:13:07 -05:00 |
Дилян Палаузов
|
c69e4bc691
|
Fixed #28769 -- Replaced 'x if x else y' with 'x or y'.
|
2017-11-07 09:08:46 -05:00 |
Tim Graham
|
6e4c6281db
|
Reverted "Fixed #27818 -- Replaced try/except/pass with contextlib.suppress()."
This reverts commit 550cb3a365
because try/except performs better.
|
2017-09-07 08:16:21 -04:00 |
Sergey Fedoseev
|
f0d9ede9e6
|
Removed useless itertools.chain() call in ChoiceWidget.optgroups().
|
2017-08-31 08:04:36 -04:00 |
caleb logan
|
9e2bf65d6a
|
Fixed #28530 -- Prevented SelectDateWidget from localizing years in output.
|
2017-08-29 14:56:08 -04:00 |
Collin Anderson
|
751f7a6d9b
|
Added Media.__repr__().
It makes it easier to debug MediaOrderConflictWarnings
(refs #28377).
|
2017-08-26 20:57:45 -04:00 |
Srinivas Reddy Thatiparthy
|
b5d47b18f1
|
Removed unnecessary else in SelectDateWidget.id_for_lable().
|
2017-08-07 22:01:45 -04:00 |
Johannes Hoppe
|
c19b56f633
|
Fixed #28377 -- Made combining form Media retain relative asset order.
Thanks Florian Apolloner, Mariusz Felisiak, and Tim Graham for reviews.
|
2017-07-20 11:06:30 -04:00 |
Roman Selivanov
|
d4da39685b
|
Fixed #28414 -- Fixed ClearableFileInput rendering as a subwidget of MultiWidget.
|
2017-07-19 14:28:06 -04:00 |
Mads Jensen
|
550cb3a365
|
Fixed #27818 -- Replaced try/except/pass with contextlib.suppress().
|
2017-06-28 14:07:55 -04:00 |
Tim Graham
|
221e6e1817
|
Fixed #28176 -- Restored the uncasted option value in ChoiceWidget template context.
|
2017-06-17 18:17:23 -04:00 |
Jon Dufresne
|
21046e7773
|
Fixed #28249 -- Removed unnecessary dict.keys() calls.
iter(dict) is equivalent to iter(dict.keys()).
|
2017-05-27 19:08:46 -04:00 |
Tim Graham
|
d302e2c09c
|
Fixed #28157 -- Fixed choice ordering in form fields with grouped and non-grouped options.
Regression in b52c73008a .
|
2017-05-03 07:21:44 -04:00 |
Claude Paroz
|
301de774c2
|
Refs #27795 -- Replaced many force_text() with str()
Thanks Tim Graham for the review.
|
2017-04-27 09:10:02 +02:00 |
Jon Dufresne
|
92bc727271
|
Replaced temporary lists used for passing arguments with iterables.
|
2017-04-26 10:54:20 -04:00 |
Jon Dufresne
|
3e91850dcc
|
Removed unneeded is True|False from bool expressions in widgets.py.
|
2017-04-21 12:34:18 -04:00 |
Jon Dufresne
|
581879a510
|
Fixed #28075 -- Prevented ChoiceWidget from localizing option values.
|
2017-04-21 12:14:40 -04:00 |
Claude Paroz
|
e487ffd3f0
|
Fixed #27866 -- Made ChoiceWidget.format_value() return a list
Thanks Tim Graham for the review.
|
2017-04-01 12:24:05 +02:00 |
heathervm
|
7d1e237753
|
Fixed #27993 -- Fixed model form default fallback for SelectMultiple.
|
2017-03-31 10:10:08 -04:00 |
Tim Graham
|
075e93c16a
|
Refs #27919 -- Changed Widget.get_context() attrs kwarg to an arg.
|
2017-03-21 09:14:45 -04:00 |
Tim Graham
|
6ff356e891
|
Refs #27919 -- Passed ChoiceWidget.create_option() kwargs as expected.
|
2017-03-21 09:14:45 -04:00 |
Adonys Alea Boffill
|
cd2ad26cc9
|
Fixed #27724 -- Fixed SelectDateWidget redisplay if a year isn't chosen.
|
2017-03-18 15:14:52 -04:00 |
Claude Paroz
|
540ae68a5c
|
Fixed #27920 -- Restored empty RadioSelect choice producing value=""
Regression in b52c73008a .
Thanks Tim Graham for the review.
|
2017-03-14 18:23:06 +01:00 |
Vytis Banaitis
|
3dcc351691
|
Refs #23919 -- Used yield from.
|
2017-02-23 20:06:01 -05:00 |
Anton Samarchyan
|
3eb679a869
|
Refs #27656 -- Updated django.forms/http docstring verbs according to PEP 257.
|
2017-02-20 19:57:33 -05:00 |
Collin Anderson
|
fb7e0e01af
|
Fixed #27850 -- Made RelatedFieldWidgetWrapper call render() of the wrapped widget.
|
2017-02-20 08:48:03 -05:00 |
Mariusz Felisiak
|
0034e9af18
|
Fixed #5851 -- Allowed specifying different HTML attrs for SplitDateTimeWidget subwidgets.
Thanks Tim Graham and Nick Pope for review.
|
2017-02-07 11:33:37 -05:00 |
Claude Paroz
|
c651331b34
|
Converted usage of ugettext* functions to their gettext* aliases
Thanks Tim Graham for the review.
|
2017-02-07 09:04:04 +01:00 |
Tim Graham
|
4353640ea9
|
Fixed #27805 -- Fixed ClearableFileInput's "Clear" checkbox on model fields with a default.
|
2017-02-06 20:31:04 -05:00 |
Jon Dufresne
|
6d8979f4c2
|
Fixed #27758 -- Reallowed AdvancedModelIterator pattern after template widget rendering.
|
2017-01-31 09:41:51 -05:00 |
Vytis Banaitis
|
d1bab24e01
|
Refs #23919, #27778 -- Removed obsolete mentions of unicode.
|
2017-01-26 08:19:27 -05:00 |
chillaranand
|
d6eaf7c018
|
Refs #23919 -- Replaced super(ClassName, self) with super().
|
2017-01-25 12:23:46 -05:00 |
Jon Dufresne
|
0d74c41981
|
Replaced dict() usage with dict literals.
Literals are faster and more idiomatic.
|
2017-01-23 19:13:49 -05:00 |
Jon Dufresne
|
ecd5944666
|
Removed ChoiceWidget.render() as it duplicates parent implementation.
|
2017-01-23 07:33:27 -05:00 |
Claude Paroz
|
dc8834cad4
|
Refs #23919 -- Removed unneeded force_str calls
|
2017-01-20 08:44:31 +01:00 |
Simon Charette
|
cecc079168
|
Refs #23919 -- Stopped inheriting from object to define new style classes.
|
2017-01-19 08:39:46 +01:00 |
Claude Paroz
|
2b281cc35e
|
Refs #23919 -- Removed most of remaining six usage
Thanks Tim Graham for the review.
|
2017-01-18 21:33:28 +01:00 |
Claude Paroz
|
7b2f2e74ad
|
Refs #23919 -- Removed six.<various>_types usage
Thanks Tim Graham and Simon Charette for the reviews.
|
2017-01-18 20:18:46 +01:00 |
Claude Paroz
|
f3c43ad1fd
|
Refs #23919 -- Removed python_2_unicode_compatible decorator usage
|
2017-01-18 13:44:34 +01:00 |
Claude Paroz
|
d7b9aaa366
|
Refs #23919 -- Removed encoding preambles and future imports
|
2017-01-18 09:55:19 +01:00 |