From f8fae0942c93c02587d6449c07eccae782624346 Mon Sep 17 00:00:00 2001 From: Dan McGee Date: Sat, 30 Jan 2010 15:51:39 -0600 Subject: 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 --- packages/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 = '?' -- cgit v1.2.3-24-g4f1b