summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2010-01-30 15:51:39 -0600
committerDan McGee <dan@archlinux.org>2010-01-30 15:51:39 -0600
commitf8fae0942c93c02587d6449c07eccae782624346 (patch)
tree75c81fde96b2996f1829f19adaf8a0d6b2363467
parent16c043abf769065b0bfadc715269e830f6ddf025 (diff)
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 22ff5d32..d696b7eb 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 = '?'