Commit bd0e999d authored by Mario Chirinos's avatar Mario Chirinos

data tables

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