Commit bf758a90 authored by fred's avatar fred
Browse files

order newsitems by date

parent 496ba2e3
......@@ -464,6 +464,8 @@ class NewsArchives(TemplateView):
if context['search_query']:
# query string
sqs = sqs.filter(text=context['search_query'])
sqs = sqs.order_by('-date')
sqs = sqs.load_all()
Supports Markdown
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