Loading docs/newforms.txt +14 −0 Original line number Diff line number Diff line Loading @@ -1382,6 +1382,20 @@ extra arguments: as choices. ============== ========== =============================================== ``FloatField`` ~~~~~~~~~~~~~~ * Default widget: ``TextInput`` * Empty value: ``None`` * Normalizes to: A Python float. * Validates that the given value is an float. Leading and trailing whitespace is allowed, as in Python's ``float()`` function. * Error message keys: ``required``, ``invalid``, ``max_value``, ``min_value`` Takes two optional arguments for validation, ``max_value`` and ``min_value``. These control the range of values permitted in the field. ``ImageField`` ~~~~~~~~~~~~~~ Loading Loading
docs/newforms.txt +14 −0 Original line number Diff line number Diff line Loading @@ -1382,6 +1382,20 @@ extra arguments: as choices. ============== ========== =============================================== ``FloatField`` ~~~~~~~~~~~~~~ * Default widget: ``TextInput`` * Empty value: ``None`` * Normalizes to: A Python float. * Validates that the given value is an float. Leading and trailing whitespace is allowed, as in Python's ``float()`` function. * Error message keys: ``required``, ``invalid``, ``max_value``, ``min_value`` Takes two optional arguments for validation, ``max_value`` and ``min_value``. These control the range of values permitted in the field. ``ImageField`` ~~~~~~~~~~~~~~ Loading