summaryrefslogtreecommitdiff
path: root/packages/views
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2012-09-25 18:22:16 -0500
committerDan McGee <dan@archlinux.org>2012-09-25 18:22:16 -0500
commit7a0e6620c9c8782fbef37db15afc3ccebc642d19 (patch)
treeb8f8c746970e6af6dc7230e04c36823e7ee43b5b /packages/views
parent3530303c9a7d017bdfec40d9dc7c38bd3fb2c09b (diff)
Don't show staging in package search repo listing
This is temporary or at least a quick way to ensure regular users aren't confused by staging packages; later updates should re-enable display of this for logged in developers and trusted users. Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'packages/views')
-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 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"})