mirror of
https://github.com/django/django.git
synced 2025-08-04 19:08:28 +00:00
Fixed #34473 -- Fixed step validation for form fields with non-zero minimum value.
This commit is contained in:
parent
549d6ffeb6
commit
1fe0b167af
9 changed files with 129 additions and 8 deletions
|
@ -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``
|
||||
-------------
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue