toastdriven/django-haystack — pull request #732 by ivirabyan (2013-02-07 07:36:28+00:00)
Title: Fixed autocomplete() method: spaces in query

`SearchQuerySet().autocomplete(title_auto='mass ')`
generates:
`q=title_auto:mass AND title_auto:`

I didn't try it with other engines, but Solr can't parse this query. I added a check, so it doesn't include empty bits into the query