summaryrefslogtreecommitdiff
path: root/packages/views.py
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2011-07-29 12:23:03 -0500
committerDan McGee <dan@archlinux.org>2011-07-29 12:23:06 -0500
commitad65f4c98e6ea3e8078b4a482fa88fb4595ccedd (patch)
tree9a168dac1e2e77368f91ff213866990ca93f1f84 /packages/views.py
parentae12aa58fd6c6965b3eadcf3843ea68602069c60 (diff)
Fix package sort fields
Don't list pkgname twice, include pkgbase instead. Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'packages/views.py')
-rw-r--r--packages/views.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/views.py b/packages/views.py
index 1f2a38d3..8c9c1b18 100644
--- a/packages/views.py
+++ b/packages/views.py
@@ -279,7 +279,7 @@ def search(request, page=None):
'search_form': form,
'current_query': current_query
}
- allowed_sort = ["arch", "repo", "pkgname", "pkgname",
+ allowed_sort = ["arch", "repo", "pkgname", "pkgbase",
"compressed_size", "installed_size",
"build_date", "last_update", "flag_date"]
allowed_sort += ["-" + s for s in allowed_sort]