Commit aecc72f3 authored by Mario Chirinos's avatar Mario Chirinos

data tables

parent ad3b1cb7
......@@ -277,7 +277,7 @@ def newsDetails(request, newsId):
form = SearchForm(request.GET)
news = News.objects.get(id=newsId)
news.text = news.text
if "text" in request.GET and request["text"] != "" and request["text"] != None:
if "text" in request.GET and request.GET["text"] != "" and request.GET["text"] != None:
translator = str.maketrans('', '', string.punctuation)
searchtext = request.GET['text'].translate(translator)
print("search text:", searchtext)
......
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