ChangeListSearchForm
This class provides a form interface for handling search queries within a change list view. It dynamically initializes a search field based on a configurable variable to capture user input for filtering data. The form is designed to integrate with administrative search functionality while supporting optional, non-stripped character input.
Attributes
| Attribute | Type | Description |
|---|---|---|
| fields | dict | A dictionary mapping the dynamic SEARCH_VAR key to a CharField used for capturing the user's search query. |
Constructor
Signature
def ChangeListSearchForm(
*args: any,
**kwargs: any
) - > null
Parameters
| Name | Type | Description |
|---|---|---|
| *args | any | Variable length argument list passed to the parent form constructor. |
| **kwargs | any | Arbitrary keyword arguments passed to the parent form constructor. |
Signature
def ChangeListSearchForm(
*args: tuple,
**kwargs: dict
)
Parameters
| Name | Type | Description |
|---|---|---|
| *args | tuple | Positional arguments passed to the parent Form constructor |
| **kwargs | dict | Keyword arguments passed to the parent Form constructor |