diff options
| author | 2022-07-12 07:50:51 +0400 | |
|---|---|---|
| committer | 2022-07-12 07:50:51 +0400 | |
| commit | 7511c6d4aff6f3ad31ccb43c00226a9187d7ece1 (patch) | |
| tree | 0c26ec6aa690ce4c62c5cf9b56f4944066cc319e /pydis_site/apps/content | |
| parent | Merge #722 - resources: add The Algorithms and remove Atom (diff) | |
| parent | Bump Django To 4.0 (diff) | |
Merge pull request #740 from python-discord/update-django
Update Django Version To 4.0
Diffstat (limited to 'pydis_site/apps/content')
| -rw-r--r-- | pydis_site/apps/content/apps.py | 2 | ||||
| -rw-r--r-- | pydis_site/apps/content/views/page_category.py | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/pydis_site/apps/content/apps.py b/pydis_site/apps/content/apps.py index 1e300a48..96019e1c 100644 --- a/pydis_site/apps/content/apps.py +++ b/pydis_site/apps/content/apps.py @@ -4,4 +4,4 @@ from django.apps import AppConfig class ContentConfig(AppConfig): """Django AppConfig for content app.""" - name = 'content' + name = 'pydis_site.apps.content' diff --git a/pydis_site/apps/content/views/page_category.py b/pydis_site/apps/content/views/page_category.py index 5af77aff..356eb021 100644 --- a/pydis_site/apps/content/views/page_category.py +++ b/pydis_site/apps/content/views/page_category.py @@ -3,7 +3,7 @@ from pathlib import Path import frontmatter from django.conf import settings -from django.http import Http404 +from django.http import Http404, HttpRequest, HttpResponse from django.views.generic import TemplateView from pydis_site.apps.content import utils @@ -12,7 +12,7 @@ from pydis_site.apps.content import utils class PageOrCategoryView(TemplateView): """Handles pages and page categories.""" - def dispatch(self, request: t.Any, *args, **kwargs) -> t.Any: + def dispatch(self, request: HttpRequest, *args, **kwargs) -> HttpResponse: """Conform URL path location to the filesystem path.""" self.location = Path(kwargs.get("location", "")) |