summaryrefslogtreecommitdiffstats
path: root/todolists
diff options
context:
space:
mode:
authorEvangelos Foutras <foutrelis@gmail.com>2010-01-24 00:52:16 +0100
committerDan McGee <dan@archlinux.org>2010-01-30 22:55:19 +0100
commit61e8a6b4c337900c5d32425f1ed81c3c5d19621b (patch)
tree18e3a5782686c6794dbaf760ba673303e0f2901e /todolists
parentf8fae0942c93c02587d6449c07eccae782624346 (diff)
downloadarchweb-61e8a6b4c337900c5d32425f1ed81c3c5d19621b.tar.gz
archweb-61e8a6b4c337900c5d32425f1ed81c3c5d19621b.tar.xz
Exclude repos ending with "Testing" from ToDos
This should fix the issue with Community-Testing packages appearing in ToDo lists. After this change has been applied, simply edit and save a ToDo list to make its Community-Testing packages go away. Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'todolists')
-rw-r--r--todolists/views.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/todolists/views.py b/todolists/views.py
index 10d36e1..c06397e 100644
--- a/todolists/views.py
+++ b/todolists/views.py
@@ -23,7 +23,8 @@ class TodoListForm(forms.Form):
self.cleaned_data['packages'].split("\n")]
package_names = set(package_names)
packages = Package.objects.filter(
- pkgname__in=package_names).exclude(repo__name="Testing").order_by('arch')
+ pkgname__in=package_names).exclude(
+ repo__name__endswith="Testing").order_by('arch')
return packages