summaryrefslogtreecommitdiffstats
path: root/packages
diff options
context:
space:
mode:
authorDusty Phillips <buchuki@gmail.com>2008-10-07 23:37:16 +0200
committerDusty Phillips <buchuki@gmail.com>2008-10-07 23:37:16 +0200
commitea4f886d6c9fb359ba7a2af2b006952c3420d37e (patch)
tree9e86ef3fdfbf08075229a2e3169a6cd8fc3946cf /packages
parent3040ed519610307aa96a2db70c7e00ea22b6aa54 (diff)
downloadarchweb-ea4f886d6c9fb359ba7a2af2b006952c3420d37e.tar.gz
archweb-ea4f886d6c9fb359ba7a2af2b006952c3420d37e.tar.xz
sort returns to first page
Diffstat (limited to 'packages')
-rw-r--r--packages/views.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/packages/views.py b/packages/views.py
index 4c7cb76..eaef72f 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')