Commit 2531a397 authored by Mario Chirinos's avatar Mario Chirinos

selected values in query index

parent e1a56f22
......@@ -120,7 +120,7 @@ def getNewsByRequest(request, values=None):
if values is None:
return News.objects.filter(myQuery)
else:
return News.objects.filter(myQuery).values(values.split(","))
return News.objects.filter(myQuery).values(",".join(values))
#-------------------------------------------------------------------------------
def status(request):
tPublishers = Publisher.objects.filter(type="texto").filter(active=True)
......
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