diff options
| author | Raphael Michel <mail@raphaelmichel.de> | 2017-05-06 00:45:07 +0200 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2017-05-05 18:45:07 -0400 |
| commit | 504e7782fef74cb78768092780a3476866379c21 (patch) | |
| tree | cd0b7ce067b70d71f134dec4f10d6832f0a70838 /docs | |
| parent | d66378a8b2d48d41b56ba3622189493e4edf9e5a (diff) | |
Refs #22654 -- Added additional tests and amended release note.
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/releases/2.0.txt | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/docs/releases/2.0.txt b/docs/releases/2.0.txt index 223e008e37..7b114f2e8a 100644 --- a/docs/releases/2.0.txt +++ b/docs/releases/2.0.txt @@ -163,10 +163,6 @@ Forms HTML attributes for the ``DateInput`` and ``TimeInput`` (or hidden) subwidgets. -* :class:`~django.forms.FloatField` and :class:`~django.forms.DecimalField` - now handle :setting:`DECIMAL_SEPARATOR` and :setting:`THOUSAND_SEPARATOR` - correctly when :setting:`USE_L10N` is off. - Generic Views ~~~~~~~~~~~~~ @@ -311,6 +307,18 @@ Miscellaneous * :class:`~django.views.generic.base.RedirectView` no longer silences ``NoReverseMatch`` if the ``pattern_name`` doesn't exist. +* When :setting:`USE_L10N` is off, :class:`~django.forms.FloatField` and + :class:`~django.forms.DecimalField` now respect :setting:`DECIMAL_SEPARATOR` + and :setting:`THOUSAND_SEPARATOR` during validation. For example, with the + settings:: + + USE_L10N = False + USE_THOUSAND_SEPARATOR = True + DECIMAL_SEPARATOR = ',' + THOUSAND_SEPARATOR = '.' + + an input of ``"1.345"`` is now converted to ``1345`` instead of ``1.345``. + .. _deprecated-features-2.0: Features deprecated in 2.0 |
