watson.filter() doesn't seem to work when the primary key is a Django.UUIDField. I always get an empty result set. The data is indexed in the databse and watson.search() seems to work as expected.
I have setup a simple test project that demonstrates this here. I've tested it with Django 1.11.6 in Python 2.7.14 running on macOS with SQLite 3.19.3 and MySQL Ver 14.14 Distrib 5.7.20 (using mysqlclient 1.3.10).
>>> from books.models import Book
>>> from watson import search as watson
>>>
>>> Book.objects.create(title="My book")
<Book: Book object>
>>> watson.search('book')
<QuerySet [<SearchEntry: Book object>]>
>>> isinstance(watson.search('book')[0].object, Book)
True
>>> watson.filter(Book, 'book')
<QuerySet []>
watson.filter()
doesn't seem to work when the primary key is aDjango.UUIDField
. I always get an empty result set. The data is indexed in the databse andwatson.search()
seems to work as expected.I have setup a simple test project that demonstrates this here. I've tested it with Django 1.11.6 in Python 2.7.14 running on macOS with SQLite 3.19.3 and MySQL Ver 14.14 Distrib 5.7.20 (using mysqlclient 1.3.10).