from django.views.generic import TemplateView


class GeneralIndexView(TemplateView):
    template_name = 'general/index.html'

    def get_context_data(self, **kwargs):
        # TODO: Investigate if importing model from another
        # app is sensible/best approach.
        from topics.models import Topic
        context = super(GeneralIndexView, self).get_context_data(**kwargs)
        context['total_topics'] = Topic.objects.count()
        return context


class GeneralAboutView(TemplateView):
    template_name = 'general/about.html'

@@ -125,347 +125,8 @@
 l'%0A%0A
-    def get_context_data(self, **kwargs):%0A        # TODO: Investigate if importing model from another%0A        # app is sensible/best approach.%0A        from topics.models import Topic%0A        context = super(GeneralIndexView, self).get_context_data(**kwargs)%0A        context%5B'total_topics'%5D = Topic.objects.count()%0A        return context%0A%0A%0A
 clas

Remove topic query from homepage (fixes #186)