Commit 5cf60993 authored by Mario Chirinos's avatar Mario Chirinos

data tables

parent db2863a6
......@@ -387,7 +387,8 @@ def wsNewsListTable(request):#, publisherShortName="all"):
for n in news:
row = list()
row.append('<a href="'+reverse('news-details', args =(n.id,) )+ "?"+ request.GET.urlencode() +'">'+ n.title+ '</a>')
txt = "?"+ request.GET['text'].urlencode() if "text" inn .requestGET 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"))
data['data'].append(row)
......
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