summaryrefslogtreecommitdiff
path: root/packages/views
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@sbcglobal.net>2015-04-16 02:50:22 -0400
committerLuke Shumaker <lukeshu@sbcglobal.net>2015-04-16 02:50:22 -0400
commitd2eb47c0dfc068c7727232d89daeee377969288d (patch)
treea28b938c1eef550a5a0d21fdab0b1fef41d4ffd3 /packages/views
parent4da7072d827b6cc2cd3aeae908b221b58738f364 (diff)
parentc8d979b8a48805d162ab46cdc4e493da0aa1595c (diff)
Merge branch 'archweb-generic'
Diffstat (limited to 'packages/views')
-rw-r--r--packages/views/search.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/packages/views/search.py b/packages/views/search.py
index e4cd0423..6e892251 100644
--- a/packages/views/search.py
+++ b/packages/views/search.py
@@ -42,11 +42,13 @@ class PackageSearchForm(forms.Form):
people = User.objects.filter(
is_active=True, userprofile__id__in=profile_ids).order_by(
'first_name', 'last_name')
- people = [('', 'All'), ('orphan', 'Orphan')] + \
+ maintainers = [('', 'All'), ('orphan', 'Orphan')] + \
+ [(p.username, p.get_full_name()) for p in people]
+ packagers = [('', 'All'), ('unknown', 'Unknown')] + \
[(p.username, p.get_full_name()) for p in people]
- self.fields['maintainer'].choices = people
- self.fields['packager'].choices = people
+ self.fields['maintainer'].choices = maintainers
+ self.fields['packager'].choices = packagers
def exact_matches(self):
# only do exact match search if 'q' is sole parameter