From ea4f886d6c9fb359ba7a2af2b006952c3420d37e Mon Sep 17 00:00:00 2001 From: Dusty Phillips Date: Tue, 7 Oct 2008 17:37:16 -0400 Subject: sort returns to first page --- packages/views.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'packages') diff --git a/packages/views.py b/packages/views.py index 4c7cb765..eaef72f6 100644 --- a/packages/views.py +++ b/packages/views.py @@ -135,7 +135,8 @@ def search(request, page=None): return HttpResponseRedirect(packages[0].get_absolute_url()) if 'sort' in request.GET: - packages = packages.order_by(request.GET['sort'], 'repo', 'arch', 'pkgname') + packages = packages.order_by( + request.GET['sort'], 'repo', 'arch', 'pkgname') else: packages = packages.order_by('repo', 'arch', '-last_update', 'pkgname') -- cgit v1.2.3-54-g00ecf