From 92ca1bee08889fc33e2fc16eb0f01728b8418054 Mon Sep 17 00:00:00 2001 From: Yaron Date: Wed, 7 Jan 2015 21:33:12 +0200 Subject: [PATCH] minister bills reversed --- committeeVotes/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/committeeVotes/views.py b/committeeVotes/views.py index f05ca5d..9dd71ec 100644 --- a/committeeVotes/views.py +++ b/committeeVotes/views.py @@ -55,7 +55,7 @@ def bill(request, bill_id): def minister_details(request, minister_id): minister = get_object_or_404(Minister,pk=minister_id) - votes = Vote.objects.filter(minister=minister) + votes = Vote.objects.filter(minister=minister).order_by('-id') context = {'minister': minister, 'votes': votes} return render(request, 'committeeVotes/minister_detail.html', context)