Commit 957a98ed authored by Mario Chirinos's avatar Mario Chirinos

remove LIKE

parent 9c43dd77
...@@ -114,7 +114,7 @@ def getNewsByRequest(request, values=None): ...@@ -114,7 +114,7 @@ def getNewsByRequest(request, values=None):
if "text" in request.GET and request.GET['text']!="None" and request.GET['text']!="": if "text" in request.GET and request.GET['text']!="None" and request.GET['text']!="":
# myQuery &= Q(text__search=request.GET['text']) # myQuery &= Q(text__search=request.GET['text'])
myQuery &= Q(search_vector__contains=request.GET['text']) myQuery &= Q(search_vector=request.GET['text'])
print (myQuery) print (myQuery)
# if values is None: # if values is None:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment