diff options
author | Dan McGee <dan@archlinux.org> | 2010-01-30 15:51:39 -0600 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2010-01-30 15:51:39 -0600 |
commit | f8fae0942c93c02587d6449c07eccae782624346 (patch) | |
tree | 75c81fde96b2996f1829f19adaf8a0d6b2363467 /packages | |
parent | 16c043abf769065b0bfadc715269e830f6ddf025 (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>
Diffstat (limited to 'packages')
-rw-r--r-- | packages/views.py | 2 |
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 = '?' |