Commit 7ae09a3e authored by Mario Chirinos's avatar Mario Chirinos

data tables

parent f5d2e9eb
......@@ -387,7 +387,7 @@ def wsNewsListTable(request):#, publisherShortName="all"):
for n in news:
row = list()
txt = "?"+ request.GET['text'].urlencode() if "text" inn request.GET else ""
txt = "?"+ request.GET['text'].urlencode() if "text" in request.GET else ""
row.append('<a href="'+reverse('news-details', args =(n.id,) )+txt+'">'+ n.title+ '</a>')
row.append('<a href="'+n.url+'" target="blank">'+n.publisher.shortName+'</a>')
row.append(n.date.strftime("%Y-%m-%d"))
......
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