summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--packages/views/search.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/packages/views/search.py b/packages/views/search.py
index 497d9bc..1fbe569 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"})