summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2015-01-29 20:16:37 -0600
committerDan McGee <dan@archlinux.org>2015-01-29 20:16:37 -0600
commit94d1c96ac9d3e5787f4e2c118646bcc496ef1146 (patch)
treec4f7abe78ca25a25a819ffbc93aae6a466c50965
parent047dc3d6348d0d30bdd828a9cc2a29e0d5946eca (diff)
Ensure packager=unknown query works as expected
I broke this in commit dca00e7aab, whoops! Signed-off-by: Dan McGee <dan@archlinux.org>
-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