diff --git a/liiweb/views/general.py b/liiweb/views/general.py index 0b49118f3..dfcccc0d2 100644 --- a/liiweb/views/general.py +++ b/liiweb/views/general.py @@ -14,11 +14,10 @@ def get_context_data(self, **kwargs): context["recent_legislation"] = Legislation.objects.filter( metadata_json__stub=False ).order_by("-date")[:10] - context["taxonomies"] = Taxonomy.get_tree() + context["taxonomies"] = Taxonomy.get_root_nodes() context["recent_articles"] = ( - Article.objects.prefetch_related("topics") + Article.objects.prefetch_related("topics", "author") .filter(published=True) - .select_related("author") .order_by("-date")[:5] ) return context diff --git a/peachjam/templates/peachjam/_taxonomy_list.html b/peachjam/templates/peachjam/_taxonomy_list.html index 470979b1e..a3bcf8d41 100644 --- a/peachjam/templates/peachjam/_taxonomy_list.html +++ b/peachjam/templates/peachjam/_taxonomy_list.html @@ -3,7 +3,7 @@ {% if taxonomies|length > 0 %}