summaryrefslogtreecommitdiff
path: root/todolists
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2011-06-23 20:27:21 -0500
committerDan McGee <dan@archlinux.org>2011-06-23 20:27:21 -0500
commit8f3c60c8dec4c162ad5dc753b97ce5177fb12ef1 (patch)
tree00fadd65f4b27abf6f71a1e5557c838a17126a95 /todolists
parent5bf28d1cabc54dfa68ff64804a31ead419780fdf (diff)
Don't include staging packages in todolists
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'todolists')
-rw-r--r--todolists/views.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/todolists/views.py b/todolists/views.py
index 9376ed68..8ad7be56 100644
--- a/todolists/views.py
+++ b/todolists/views.py
@@ -23,8 +23,8 @@ class TodoListForm(forms.ModelForm):
package_names = [s.strip() for s in
self.cleaned_data['packages'].split("\n")]
package_names = set(package_names)
- packages = Package.objects.filter(pkgname__in=package_names).exclude(
- repo__testing=True).select_related(
+ packages = Package.objects.filter(pkgname__in=package_names).filter(
+ repo__testing=False, repo__staging=False).select_related(
'arch', 'repo').order_by('arch')
return packages