toastdriven/django-haystack — pull request #870 by marcari (2013-10-03 12:12:56+00:00)
Title: Fix model query generation for ElasticSearch

Useful when we have several models in the same app and one of the
models has the same name as the app.

For example if we have the app "album" containing the models "Album" and "Track".

They will have "album.album" and "album.track" respectively for their django_ct.

Then we search for albums, the query is ``django_ct:(album.album)`` which will match tracks. Instead it now generates ``django_ct:("album.album")`` which only matches albums.