ModelInfoFilter
Properties
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
| label | string | yes | Displayed name of the filter. | |
| type_db | string | yes | ||
| type_model | string | yes | ||
| type_filter | string | yes | The filter input type. Usually the django-filter form field class; value-derived filters use AllValuesChoiceField or AllValuesMultipleChoiceField. | |
| lookup_exprs | string[] | yes | ||
| required | boolean | yes | ||
| hidden | boolean | yes | Whether the filter's widget is hidden. | |
| choices | object[] | boolean | yes | ||
| app_label | string | no | If "choices" is true, this will be in the results, because you need it to get the choices with List field choices. | |
| model | string | no | If "choices" is true, this will be in the results, because you need it to get the choices with List field choices. | |
| filterset_name | string | no | Filterset class that serves the choices. | |
| help_text | string | no | ||
| max_value | number | string | no | ||
| min_value | number | string | no | ||
| max_length | integer | no | ||
| min_length | integer | no | ||
| max_digits | integer | no | ||
| decimal_places | integer | no | ||
| step | number | string | no | ||
| empty_label | string | no | ||
| empty_value | object | no | ||
| null_label | string | no | ||
| null_value | object | no | ||
| error_messages | map<string, string> | no | Error messages keyed by code. | |
| input_formats | string[] | no | ||
| input_type | string | no | HTML input type of the filter's widget. | |
| suffixes | string[] | no | Suffixes appended to the filter name. | |
| validators | ModelInfoFilterValidator[] | no |