How to make search not case sensitive?

89 views
Skip to first unread message

Ilya

unread,
Jun 13, 2016, 11:02:10 AM6/13/16
to django-watson discussion group
Is it possible to make watson  search not to be case sensitive?

Dave Hall

unread,
Jun 14, 2016, 7:06:41 AM6/14/16
to django-watson discussion group
Yes! :)

Register your model with a custom search adapter:


Use something like:


Then, when you call watson.search() or watson.filter(), be sure to lowercase the user's search term.

On Mon, 13 Jun 2016 at 16:02 Ilya <ilya....@gmail.com> wrote:
Is it possible to make watson  search not to be case sensitive?

--
You received this message because you are subscribed to the Google Groups "django-watson discussion group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-watso...@googlegroups.com.
To post to this group, send email to django...@googlegroups.com.
Visit this group at https://groups.google.com/group/django-watson.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages