| Age | Commit message (Collapse) | Author |
|
If it does, that will be used as the cleaned_data. The default
implementation has been changed to match this change.
|
|
The `MultiValueField` class gets a new ``require_all_fields`` argument that
defaults to ``True``. If set to ``False``, individual fields can be made
optional, and a new ``incomplete`` validation error will be raised if any
required fields have empty values.
The ``incomplete`` error message can be defined on a `MultiValueField`
subclass or on each individual field. Skip duplicate errors.
|
|
|
|
Thanks Loic Bistuer for the review.
|
|
Thanks croldan for the report.
|
|
list of choices.
|
|
Should be unneeded with Python 2.7 and up.
Added some unicode_literals along the way.
|
|
Thanks CollinAnderson for the report.
|
|
Thanks laureline.guerin@ and Wedg.
|
|
Thanks Tim Graham for the report.
|
|
Browsers parse small factors of 10 as 0 under decimal notation.
Thanks to Trac alias matklad for the report and Claude Paroz for the review.
|
|
Thanks Tim Graham for the review.
|
|
Django 1.7 will loudly warn when widget attributes are assigned
boolean values. In Django 1.8, False will mean attribute is not
present while True will mean attribute present without value.
Refs #20684.
|
|
|
|
BaseModelFormSet.forms is now a cached property instead of being
populated in the __init__ method. This behaviour also matches an
example in the documentation.
Thanks Thomasz Swiderski for the report and Simon Charette for the
review.
|
|
This attribute is only allowed on inputs of type "text", "search", "url",
"tel", "email", or "password".
Thanks to yoyoma for the report and @bmispelon for the review.
|
|
|
|
|
|
fields
|
|
as the exception bubbles up
|
|
Thanks to frog32 for the report and to Tim Graham for the review.
|
|
error_messages
|
|
Thanks carbonXT for the report.
|
|
There was an inconsistency between how the label_tag for forms were
generated depending on which method was used: as_p, as_ul and as_table
contained code to append the label_suffix where as label_tag called on a
form field directly did NOT append the label_suffix. The code for
appending the label_suffix has been moved in to the label_tag code of
the field and the HTML generation code for as_p, as_ul and as_table now
calls this code as well.
This is a backwards incompatible change because users who have added the
label_suffix manually in their templates may now get double label_suffix
characters in their forms.
|
|
Thanks margieroginski for the report.
|
|
|
|
|
|
Thanks Denis Martinez for the report and initial patch, and
Sergey Kolosov for bringing the patch up to date.
|
|
Don't try to be smart about building a good-looking help string
because it evaluates translations too early, simply use the same old
strategy as before. Thanks Donald Stufft for the report.
Also, actually fix the case reported by the OP by special-casing
CheckboxSelectMultiple.
Added tests.
Refs #9321.
|
|
In _get_changed_data, check if initial_value is a callable and call it
if it is.
|
|
fields.
This is backward incompatible for custom form field/widgets that rely
on the hard-coded 'Hold down "Control", or "Command" on a Mac, to select
more than one.' sentence.
Application that use standard model form fields and widgets aren't
affected but need to start handling these help texts by themselves
before Django 1.8.
For more details, see the related release notes and deprecation timeline
sections added with this commit.
|
|
|
|
Fixed #11160: Formset non_form_errors returns ErrorList() if is_valid is not called
|
|
|
|
Fixed #18761 -- Added whitespace stripping to URLField and SlugField.
|
|
|
|
|
|
|
|
Updated FormSet.non_form_errors() to ensure full_clean() has
been called before returning the errors.
|
|
Thanks Lennart Regebro for pointing it out.
|
|
This starts the deprecation period for PIL (support to end in 1.8).
|
|
added '__all__' shortcut
This also updates all dependent functionality, including modelform_factory
and modelformset_factory, and the generic views `ModelFormMixin`,
`CreateView` and `UpdateView` which gain a new `fields` attribute.
|
|
Several languages will distinctly translate '%d or fewer forms'
depending on the variable.
|
|
Also fixed plural messages for DecimalField.
|
|
I refactored RadioSelect and CheckboxSelectMultiple to
make them inherit from a base class, allowing them to share
the behavior of being able to iterate over their subwidgets.
Thanks to Matt McClanahan for the initial patch and to
Claude Paroz for the review.
|
|
|
|
|
|
Also cleaned up label escaping and consolidated the test suite regarding
label_tag.
|
|
|
|
|