We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eb978f2 commit ab750a1Copy full SHA for ab750a1
haystack/backends/__init__.py
@@ -472,7 +472,7 @@ def build_query(self):
472
query = self.matching_all_fragment()
473
474
if len(self.models):
475
- models = ['django_ct:%s.%s' % (model._meta.app_label, model._meta.module_name) for model in self.models]
+ models = sorted(['django_ct:%s.%s' % (model._meta.app_label, model._meta.module_name) for model in self.models])
476
models_clause = ' OR '.join(models)
477
478
if query != self.matching_all_fragment():
0 commit comments