Skip to main content

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

AttributeTypeDescription
fieldsdictA 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

NameTypeDescription
*argsanyVariable length argument list passed to the parent form constructor.
**kwargsanyArbitrary keyword arguments passed to the parent form constructor.

Signature

def ChangeListSearchForm(
*args: tuple,
**kwargs: dict
)

Parameters

NameTypeDescription
*argstuplePositional arguments passed to the parent Form constructor
**kwargsdictKeyword arguments passed to the parent Form constructor