Commit 495cdeed authored by Mario Chirinos's avatar Mario Chirinos

selected values in query index

parent 398f6492
......@@ -119,7 +119,7 @@ def getNewsByRequest(request, values=None):
print (myQuery)
if values is None:
return News.objects.filter(myQuery)
else
else:
return News.objects.filter(myQuery).values(values)
#-------------------------------------------------------------------------------
def status(request):
......
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