From 61e8a6b4c337900c5d32425f1ed81c3c5d19621b Mon Sep 17 00:00:00 2001 From: Evangelos Foutras Date: Sun, 24 Jan 2010 01:52:16 +0200 Subject: 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 --- todolists/views.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/todolists/views.py b/todolists/views.py index 10d36e15..c06397e7 100644 --- a/todolists/views.py +++ b/todolists/views.py @@ -23,7 +23,8 @@ def clean_packages(self): 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 -- cgit v1.2.3-54-g00ecf