MCPcopy Index your code
hub / github.com/django-haystack/django-haystack / __init__

Method __init__

haystack/forms.py:97–104  ·  view source on GitHub ↗
(self, *args, **kwargs)

Source from the content-addressed store, hash-verified

95
96class 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."""

Callers

nothing calls this directly

Calls 2

model_choicesFunction · 0.85
__init__Method · 0.45

Tested by

no test coverage detected