postgres.forms.RangeWidget

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 RangeWidget comprises a 2-tuple of base_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.

doc_Django
2016-10-09 18:39:20
Comments
Leave a Comment

Please login to continue.