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

Method get_models

haystack/forms.py:106–114  ·  view source on GitHub ↗

Return a list of the selected models.

(self)

Source from the content-addressed store, hash-verified

104 )
105
106 def get_models(self):
107 """Return a list of the selected models."""
108 search_models = []
109
110 if self.is_valid():
111 for model in self.cleaned_data["models"]:
112 search_models.append(haystack_get_model(*model.split(".")))
113
114 return search_models
115
116 def search(self):
117 sqs = super().search()

Callers 3

searchMethod · 0.95
searchMethod · 0.80
haystack_get_modelsFunction · 0.80

Calls 1

haystack_get_modelFunction · 0.90

Tested by

no test coverage detected