@@ -134,8 +134,8 @@ For example, in the `Log` model of the source data, there are three boolean fiel
134134For this model, we define the ` color ` property as follows.
135135
136136- The ` color ` property has the value 'red' if the field ` is_online == False ` .
137- - If ` is_online == True ` and both ` is_trouble1 ` and ` is_trouble1 ` fields are False, then the value of the property is 'green'.
138- - If ` is_online == True ` and at least one of the fields ` is_trouble1 ` and ` is_trouble1 ` is True, then the property has the value 'yellow'.
137+ - If ` is_online == True ` and both ` is_trouble1 ` and ` is_trouble2 ` fields are False, then the value of the property is 'green'.
138+ - If ` is_online == True ` and at least one of the fields ` is_trouble1 ` and ` is_trouble2 ` is True, then the property has the value 'yellow'.
139139
140140``` python
141141# models.py
@@ -233,12 +233,16 @@ class MyDateRange(DateRange):
233233
234234You can override the following attributes.
235235
236+ - ` FILTER_LABEL ` : Title of the filter.
237+ - ` BUTTON_LABEL ` : Text on the apply filter button.
236238- ` FROM_LABEL ` : The label of the start date field.
237239- ` TO_LABEL ` : The label of the end date field.
238240- ` ALL_LABEL ` : The label of the menu item for displaying all records.
239241- ` CUSTOM_LABEL ` : The label of the menu item when date range is set.
240242- ` NULL_LABEL ` : The label of the menu item for displaying records without date.
241243- ` is_null_option ` : Set this attribute to ` False ` to remove the option to display record without date from the filter menu.
244+ - ` parameter_start_mask ` : Mask of the GET request parameter name for the start date of the date range.
245+ - ` parameter_end_mask ` : Mask of the GET request parameter name for the end date of the date range.
242246- ` DATE_FORMAT ` : Hint about the format of the date and time fields.
243247
244248You can change the date/time input format to your own.
0 commit comments