diff options
Diffstat (limited to 'packages/views/search.py')
-rw-r--r-- | packages/views/search.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/packages/views/search.py b/packages/views/search.py index 497d9bca..1fbe5694 100644 --- a/packages/views/search.py +++ b/packages/views/search.py @@ -56,8 +56,9 @@ class PackageSearchForm(forms.Form): def __init__(self, *args, **kwargs): super(PackageSearchForm, self).__init__(*args, **kwargs) + repos = Repo.objects.filter(staging=False) self.fields['repo'].choices = make_choice( - [repo.name for repo in Repo.objects.all()]) + [repo.name for repo in repos]) self.fields['arch'].choices = make_choice( [arch.name for arch in Arch.objects.all()]) self.fields['q'].widget.attrs.update({"size": "30"}) |