diff options
author | 2020-11-28 10:02:32 +0200 | |
---|---|---|
committer | 2020-11-28 10:02:32 +0200 | |
commit | 9455162bfbbad30705537141fc3bb04f32824ba0 (patch) | |
tree | 917119184bb949757fee4f7aa124f4995bf770b6 /pydis_site | |
parent | Fix linting in resources view (diff) |
Update template name of articles index
Diffstat (limited to 'pydis_site')
-rw-r--r-- | pydis_site/apps/content/views/articles.py | 8 |
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() |