aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--pydis_site/apps/content/views/articles.py8
1 files 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()