V
V
Vova Putsyk2016-05-25 16:48:17
Django
Vova Putsyk, 2016-05-25 16:48:17

Why is my Q search not working?

#views.py
...
search_request = request.GET["q"]
result = Game.objects.filter(title__icontains=search_request)
...

The result array is always empty.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Roman Kitaev, 2016-05-25
@deliro

The SQLite database cannot do ILIKE with Cyrillic.
result is not an array.
You don't use Q.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question