summaryrefslogtreecommitdiff
path: root/packages/views.py
diff options
context:
space:
mode:
authorDusty Phillips <buchuki@gmail.com>2008-10-07 17:37:16 -0400
committerDusty Phillips <buchuki@gmail.com>2008-10-07 17:37:16 -0400
commitea4f886d6c9fb359ba7a2af2b006952c3420d37e (patch)
tree9e86ef3fdfbf08075229a2e3169a6cd8fc3946cf /packages/views.py
parent3040ed519610307aa96a2db70c7e00ea22b6aa54 (diff)
sort returns to first page
Diffstat (limited to 'packages/views.py')
-rw-r--r--packages/views.py3
1 files changed, 2 insertions, 1 deletions
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')