Skip to main content

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

AttributeTypeDescription
default_error_messagesdict = {"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.DecimalFieldThe form field class used to validate each individual value within the range.
range_typetype = NumericRangeThe underlying range object type used to represent the numeric interval.

Constructor

Signature

def DecimalRangeField()

Signature

def DecimalRangeField() - > null