From 22d303580f1378c8ccce81b3d366e337e3de661d Mon Sep 17 00:00:00 2001 From: Sanj Date: Sun, 22 Apr 2012 17:34:31 +0530 Subject: [PATCH] uh, sort --- manifests/ships/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/manifests/ships/views.py b/manifests/ships/views.py index 8bd79e8..e592b36 100644 --- a/manifests/ships/views.py +++ b/manifests/ships/views.py @@ -205,7 +205,7 @@ def shipList(request): qset = qset.filter(good__description_string_trans__icontains=goods).distinct() # if country: # qset = qset.filter(country__icontains=country) - qset = qset.sort_by('date') + qset = qset.order_by(sort) paginator = Paginator(qset, page_size) results = paginator.page(page) no_of_results = qset.count()