(self, *args, **kwargs)
| 95 | |
| 96 | class ModelSearchForm(SearchForm): |
| 97 | def __init__(self, *args, **kwargs): |
| 98 | super().__init__(*args, **kwargs) |
| 99 | self.fields["models"] = forms.MultipleChoiceField( |
| 100 | choices=model_choices(), |
| 101 | required=False, |
| 102 | label=_("Search In"), |
| 103 | widget=forms.CheckboxSelectMultiple, |
| 104 | ) |
| 105 | |
| 106 | def get_models(self): |
| 107 | """Return a list of the selected models.""" |
nothing calls this directly
no test coverage detected