summaryrefslogtreecommitdiff
path: root/packages
diff options
context:
space:
mode:
authoreliott <eliott@cactuswax.net>2008-04-03 23:28:55 -0700
committereliott <eliott@cactuswax.net>2008-04-03 23:28:55 -0700
commit15a2e4e1122c012d1de065477a4cf7b9b2c410a4 (patch)
treeb3582d429f8c7e62031b2c37d6dc73ffc2bc7d85 /packages
parentd5cf1141bb884e690c43f255bb8031d133c35344 (diff)
Partial fix for FS#9554release_2008040302
Diffstat (limited to 'packages')
-rw-r--r--packages/models.py6
1 files changed, 4 insertions, 2 deletions
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):