From 2c873b8e00aaa15afdcd58c0f8ba4cf7e1608ce0 Mon Sep 17 00:00:00 2001
From: Jorran Wit <jorrandewit@outlook.com>
Date: Wed, 14 Dec 2016 17:35:04 +0100
Subject: [PATCH] Order CommentarySearchForm results again

Lost order argument in query for CommentarySearchForm
results in the last commit.
---
 commentaries/forms.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/commentaries/forms.py b/commentaries/forms.py
index d769b6def..1209f2d15 100644
--- a/commentaries/forms.py
+++ b/commentaries/forms.py
@@ -66,4 +66,4 @@ class CommentarySearchForm(forms.Form):
         return Commentary.objects.vetted(
             pub_title__icontains=self.cleaned_data['pub_title_keyword'],
             pub_abstract__icontains=self.cleaned_data['pub_abstract_keyword'],
-            author_list__icontains=self.cleaned_data['pub_author'])
+            author_list__icontains=self.cleaned_data['pub_author']).order_by('-pub_date')
-- 
GitLab