harvest-dev team mailing list archive
-
harvest-dev team
-
Mailing list archive
-
Message #00387
[Merge] lp:~dholbach/harvest/frontpage-fix into lp:harvest
Daniel Holbach has proposed merging lp:~dholbach/harvest/frontpage-fix into lp:harvest.
Requested reviews:
harvest-dev (harvest-dev)
--
https://code.launchpad.net/~dholbach/harvest/frontpage-fix/+merge/37735
Your team harvest-dev is requested to review the proposed merge of lp:~dholbach/harvest/frontpage-fix into lp:harvest.
=== modified file 'harvest/common/views.py'
--- harvest/common/views.py 2010-08-31 07:52:51 +0000
+++ harvest/common/views.py 2010-10-06 12:56:00 +0000
@@ -10,8 +10,8 @@
'pageSection': 'home',
'users': User.objects.count(),
'sourcepackages': SourcePackage.objects.count(),
- 'opportunitylists': OpportunityList.objects.count(),
- 'opportunities': Opportunity.objects.count(),
+ 'opportunitylists': OpportunityList.objects.filter(active=True).count(),
+ 'opportunities': Opportunity.objects.filter(valid=True).count(),
'notes': Note.objects.count(),
}
return render_to_response('index.html', context,