Skip to content

Commit ab750a1

Browse files
committed
Sorted model order matters.
1 parent eb978f2 commit ab750a1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

haystack/backends/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -472,7 +472,7 @@ def build_query(self):
472472
query = self.matching_all_fragment()
473473

474474
if len(self.models):
475-
models = ['django_ct:%s.%s' % (model._meta.app_label, model._meta.module_name) for model in self.models]
475+
models = sorted(['django_ct:%s.%s' % (model._meta.app_label, model._meta.module_name) for model in self.models])
476476
models_clause = ' OR '.join(models)
477477

478478
if query != self.matching_all_fragment():

0 commit comments

Comments
 (0)