summaryrefslogtreecommitdiff
path: root/docs/releases/4.1.txt
diff options
context:
space:
mode:
authorKapil Bansal <kapilbansal.gbpecdelhi@gmail.com>2022-05-12 11:30:47 +0200
committerCarlton Gibson <carlton@noumenal.es>2022-05-12 14:16:52 +0200
commit3a82b5f655446f0ca89e3b6a92b100aa458f348f (patch)
tree6e600054369b9316865b3b5b3ab1838769a2b54e /docs/releases/4.1.txt
parent68da6b389c403cb91650754be0e2287696807333 (diff)
Fixed #32559 -- Added 'step_size’ to numeric form fields.
Co-authored-by: Jacob Rief <jacob.rief@uibk.ac.at>
Diffstat (limited to 'docs/releases/4.1.txt')
-rw-r--r--docs/releases/4.1.txt10
1 files changed, 9 insertions, 1 deletions
diff --git a/docs/releases/4.1.txt b/docs/releases/4.1.txt
index 84eca03563..677e8c0345 100644
--- a/docs/releases/4.1.txt
+++ b/docs/releases/4.1.txt
@@ -297,6 +297,11 @@ Forms
error messages for invalid number of forms by passing ``'too_few_forms'``
and ``'too_many_forms'`` keys.
+* :class:`~django.forms.IntegerField`, :class:`~django.forms.FloatField`, and
+ :class:`~django.forms.DecimalField` now optionally accept a ``step_size``
+ argument. This is used to set the ``step`` HTML attribute, and is validated
+ on form submission.
+
Generic Views
~~~~~~~~~~~~~
@@ -444,7 +449,10 @@ Utilities
Validators
~~~~~~~~~~
-* ...
+* The new :class:`~django.core.validators.StepValueValidator` checks if a value
+ is an integral multiple of a given step size. This new validator is used for
+ the new ``step_size`` argument added to form fields representing numeric
+ values.
.. _backwards-incompatible-4.1: