DecimalRangeField
This class provides a form field for inputting a range of decimal values. It utilizes a decimal field as its base component and represents the resulting data as a numeric range object.
Attributes
| Attribute | Type | Description |
|---|---|---|
| default_error_messages | dict = {"invalid": _("Enter two numbers.")} | A dictionary containing the error message displayed when the input does not consist of two valid numbers. |
| base_field | [Field](../../../../forms/fields/field.md?sid=django_forms_fields_field) = forms.DecimalField | The form field class used to validate each individual value within the range. |
| range_type | type = NumericRange | The underlying range object type used to represent the numeric interval. |
Constructor
Signature
def DecimalRangeField()
Signature
def DecimalRangeField() - > null