From 15a2e4e1122c012d1de065477a4cf7b9b2c410a4 Mon Sep 17 00:00:00 2001 From: eliott Date: Thu, 3 Apr 2008 23:28:55 -0700 Subject: Partial fix for FS#9554 --- packages/models.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'packages') diff --git a/packages/models.py b/packages/models.py index bce638df..cc3b279e 100644 --- a/packages/models.py +++ b/packages/models.py @@ -8,12 +8,14 @@ class PackageManager(models.Manager): # first the orphans unflagged = self.filter(maintainer=0).count() flagged = self.filter(maintainer=0).filter(needupdate=True).count() - results.append((User(id=0,first_name='Orphans'), unflagged, flagged)) + flagged_notest = self.filter(maintainer=0).filter(needupdate=True).exclude(repo__name__exact='Testing').count() + results.append((User(id=0,first_name='Orphans'), unflagged, flagged, flagged_notest)) # now the rest for maint in User.objects.all().order_by('first_name'): unflagged = self.filter(maintainer=maint.id).count() flagged = self.filter(maintainer=maint.id).filter(needupdate=True).count() - results.append((maint, unflagged, flagged)) + flagged_notest = self.filter(maintainer=maint.id).filter(needupdate=True).exclude(repo__name__exact='Testing').count() + results.append((maint, unflagged, flagged, flagged_notest)) return results class Category(models.Model): -- cgit v1.2.3-2-g168b