From 9455162bfbbad30705537141fc3bb04f32824ba0 Mon Sep 17 00:00:00 2001 From: ks129 <45097959+ks129@users.noreply.github.com> Date: Sat, 28 Nov 2020 10:02:32 +0200 Subject: Update template name of articles index --- pydis_site/apps/content/views/articles.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/pydis_site/apps/content/views/articles.py b/pydis_site/apps/content/views/articles.py index d66425c3..999002d0 100644 --- a/pydis_site/apps/content/views/articles.py +++ b/pydis_site/apps/content/views/articles.py @@ -1,7 +1,3 @@ -from django.core.handlers.wsgi import WSGIRequest -from django.http import HttpResponse -from django.shortcuts import render -from django.views import View from django.views.generic import TemplateView from pydis_site.apps.content.utils import get_articles, get_categories @@ -10,9 +6,9 @@ from pydis_site.apps.content.utils import get_articles, get_categories class ArticlesView(TemplateView): """Shows all content and categories.""" - template_name = "content/articles.html" + template_name = "content/listing.html" - def get_context_data(self, **kwargs): + def get_context_data(self, **kwargs) -> dict: """Add articles and categories data to template context.""" context = super().get_context_data(**kwargs) context["content"] = get_articles() -- cgit v1.2.3