+ category.cloud_size = get_cloud_size(category.click_count, all_tags_click_count)
+
+ tags = Tag.objects.filter(items__question__published=True) \
+ .annotate(c=models.Count('items__tag')).order_by('category__slug', '-c', 'slug')
+ uncategorized_tags_click_count = Tag.objects.filter(category=None).aggregate(models.Sum('click_count'))['click_count__sum']