Fixed #34473 -- Fixed step validation for form fields with non-zero minimum value.

This commit is contained in:
Jacob Rief 2023-04-08 22:10:17 +02:00 committed by Mariusz Felisiak
parent 549d6ffeb6
commit 1fe0b167af
9 changed files with 129 additions and 8 deletions

View file

@ -562,7 +562,9 @@ For each field, we describe the default widget used if you don't specify
.. attribute:: step_size
Limit valid inputs to an integral multiple of ``step_size``.
Limit valid inputs to an integral multiple of ``step_size``. If
``min_value`` is also provided, it's added as an offset to determine if
the step size matches.
``DurationField``
-----------------
@ -695,7 +697,9 @@ For each field, we describe the default widget used if you don't specify
.. attribute:: step_size
Limit valid inputs to an integral multiple of ``step_size``.
Limit valid inputs to an integral multiple of ``step_size``. If
``min_value`` is also provided, it's added as an offset to determine if
the step size matches.
``GenericIPAddressField``
-------------------------
@ -831,7 +835,9 @@ For each field, we describe the default widget used if you don't specify
.. attribute:: step_size
Limit valid inputs to an integral multiple of ``step_size``.
Limit valid inputs to an integral multiple of ``step_size``. If
``min_value`` is also provided, it's added as an offset to determine if
the step size matches.
``JSONField``
-------------