Commit c92a88c4 authored by Mario Chirinos's avatar Mario Chirinos

news details

parent e7208fcf
......@@ -278,7 +278,7 @@ def newsDetails(request, newsId):
news = News.objects.get(id=newsId)
news.text = news.text
print (request.GET)
if "text" in request.GET and request.GET["text"] != "" and request.GET["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