diff options
author | Dan McGee <dan@archlinux.org> | 2011-06-24 03:27:21 +0200 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2011-06-24 03:27:21 +0200 |
commit | 8f3c60c8dec4c162ad5dc753b97ce5177fb12ef1 (patch) | |
tree | 00fadd65f4b27abf6f71a1e5557c838a17126a95 /todolists | |
parent | 5bf28d1cabc54dfa68ff64804a31ead419780fdf (diff) | |
download | archweb-8f3c60c8dec4c162ad5dc753b97ce5177fb12ef1.tar.gz archweb-8f3c60c8dec4c162ad5dc753b97ce5177fb12ef1.tar.xz |
Don't include staging packages in todolists
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'todolists')
-rw-r--r-- | todolists/views.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/todolists/views.py b/todolists/views.py index 9376ed6..8ad7be5 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 |