rel #713, remove unneeded queries from homepage

This commit is contained in:
Glen Chiacchieri 2013-04-05 12:22:00 +00:00
parent 3c591af3ff
commit 1796198e41

View file

@ -66,9 +66,6 @@ def index(request, full=True):
cats = sorted(cats.values(), cmpdef)
to_return = {'cats': cats,
'posts': Post.objects.count(),
'topics': Topic.objects.count(),
'users': User.objects.count(),
'users_online': users_online,
'online_count': users_count,
'online_truncated': online_truncated,