Ensure packager=unknown query works as expected

I broke this in commit dca00e7aab, whoops!

Signed-off-by: Dan McGee <dan@archlinux.org>
This commit is contained in:
Dan McGee 2015-01-29 20:16:37 -06:00
parent 047dc3d634
commit 94d1c96ac9

View File

@ -42,11 +42,13 @@ def __init__(self, *args, **kwargs):
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