Skip to content

Commit 8739e33

Browse files
committed
Fix logging call in SQS post_process_results (see django-haystack#648)
This was used in an except: handler and would only be executed when a load_all() queryset retrieved a model which wasn't registered with the index.
1 parent 3c9a530 commit 8739e33

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

haystack/query.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ def post_process_results(self, results):
211211
objects = index.read_queryset(using=self.query._using)
212212
loaded_objects[model] = objects.in_bulk(models_pks[model])
213213
except NotHandled:
214-
self.log.warning("Model '%s.%s' not handled by the routers.", self.app_label, self.model_name)
214+
self.log.warning("Model '%s' not handled by the routers", model)
215215
# Revert to old behaviour
216216
loaded_objects[model] = model._default_manager.in_bulk(models_pks[model])
217217

0 commit comments

Comments
 (0)