diff options
| author | Tai Lee <tai.lee@3030.com.au> | 2013-05-07 19:06:03 +1000 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2013-08-06 08:50:47 -0400 |
| commit | 12806758347dfd63a3cd1bfc0d925c09fdbd9cff (patch) | |
| tree | 5adcb1291326bb822f1ccb6e94526e57037261be /docs/releases | |
| parent | c33d1ca1d98003de29cdecb6080b52c5c52139bd (diff) | |
Fixed #15511 -- Allow optional fields on ``MultiValueField` subclasses.
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.
Diffstat (limited to 'docs/releases')
| -rw-r--r-- | docs/releases/1.7.txt | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/docs/releases/1.7.txt b/docs/releases/1.7.txt index 161ae55436..fbbf93f627 100644 --- a/docs/releases/1.7.txt +++ b/docs/releases/1.7.txt @@ -122,6 +122,11 @@ Minor features ``html_email_template_name`` parameter used to send a multipart HTML email for password resets. +* :class:`~django.forms.MultiValueField` allows optional subfields by setting + the ``require_all_fields`` argument to ``False``. The ``required`` attribute + for each individual field will be respected, and a new ``incomplete`` + validation error will be raised when any required fields are empty. + Backwards incompatible changes in 1.7 ===================================== |
