class documentation
class BaseRangeField(forms.MultiValueField): (source)
Known subclasses: django.contrib.postgres.forms.ranges.DateRangeField
, django.contrib.postgres.forms.ranges.DateTimeRangeField
, django.contrib.postgres.forms.ranges.DecimalRangeField
, django.contrib.postgres.forms.ranges.IntegerRangeField
Undocumented
Method | __init__ |
Undocumented |
Method | compress |
Return a single value for the given list of values. The values can be assumed to be valid. |
Method | prepare |
Undocumented |
Class Variable | default |
Undocumented |
Instance Variable | range |
Undocumented |
Inherited from MultiValueField
:
Method | __deepcopy__ |
Undocumented |
Method | clean |
Validate every value in the given list. A value is validated against the corresponding Field in self.fields. |
Method | has |
Return True if data differs from initial. |
Method | validate |
Undocumented |
Instance Variable | fields |
Undocumented |
Instance Variable | require |
Undocumented |
Inherited from Field
(via MultiValueField
):
Method | bound |
Return the value that should be shown for this field on render of a bound form, given the submitted POST data for the field and the initial data, if any. |
Method | get |
Return a BoundField instance that will be used when accessing the form field in a template. |
Method | run |
Undocumented |
Method | to |
Undocumented |
Method | widget |
Given a Widget instance (*not* a Widget class), return a dictionary of any HTML attributes that should be added to the Widget, based on this Field. |
Class Variable | default |
Undocumented |
Class Variable | empty |
Undocumented |
Instance Variable | disabled |
Undocumented |
Instance Variable | error |
Undocumented |
Instance Variable | help |
Undocumented |
Instance Variable | initial |
Undocumented |
Instance Variable | label |
Undocumented |
Instance Variable | label |
Undocumented |
Instance Variable | localize |
Undocumented |
Instance Variable | required |
Undocumented |
Instance Variable | show |
Undocumented |
Instance Variable | validators |
Undocumented |
Instance Variable | widget |
Undocumented |
Return a single value for the given list of values. The values can be assumed to be valid. For example, if this MultiValueField was instantiated with fields=(DateField(), TimeField()), this might return a datetime object created by combining the date and time in data_list.