summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2010-01-30 22:51:39 +0100
committerDan McGee <dan@archlinux.org>2010-01-30 22:51:39 +0100
commitf8fae0942c93c02587d6449c07eccae782624346 (patch)
tree75c81fde96b2996f1829f19adaf8a0d6b2363467
parent16c043abf769065b0bfadc715269e830f6ddf025 (diff)
downloadarchweb-f8fae0942c93c02587d6449c07eccae782624346.tar.gz
archweb-f8fae0942c93c02587d6449c07eccae782624346.tar.xz
Package search: sort maintainer list by username
Makes it easier to find a user since we have quite a few. FS#18055. Signed-off-by: Dan McGee <dan@archlinux.org>
-rw-r--r--packages/views.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/views.py b/packages/views.py
index 22ff5d3..d696b7e 100644
--- a/packages/views.py
+++ b/packages/views.py
@@ -107,7 +107,7 @@ class PackageSearchForm(forms.Form):
self.fields['maintainer'].choices = self.fields[
'maintainer'].widget.choices = [
('', 'All'), ('orphan', 'Orphan')] + make_choice(
- [m.username for m in User.objects.all()])
+ [m.username for m in User.objects.order_by('username')])
def search(request, page=None):
current_query = '?'