[PATCH 1/2] Exclude repos ending with "Testing" from ToDos

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



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.
---
 todolists/views.py |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/todolists/views.py b/todolists/views.py
index 3c03b30..72fed16 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
 
 
-- 
1.6.6.1



[Index of Archives]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux