class RangeWidget(base_widget, attrs=None)
Widget used by all of the range fields. Based on MultiWidget.
RangeWidget has one required argument:
-
base_widget -
A
RangeWidgetcomprises a 2-tuple ofbase_widget.
-
decompress(value) -
Takes a single “compressed” value of a field, for example a
DateRangeField, and returns a tuple representing and lower and upper bound.
Please login to continue.