Commit f5d2e9eb authored by Mario Chirinos's avatar Mario Chirinos

data tables

parent 5cf60993
...@@ -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 = "?"+ request.GET['text'].urlencode() if "text" inn .requestGET else "" txt = "?"+ request.GET['text'].urlencode() if "text" inn request.GET 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