diff options
| author | 2022-07-15 13:06:38 +0300 | |
|---|---|---|
| committer | 2022-07-15 13:33:21 +0300 | |
| commit | a77f35b598b227d87db0955a0b2bc97839dcb978 (patch) | |
| tree | 5c2759a37f8dad14d9970e432b698326a86db661 /pydis_site/apps/content/views | |
| parent | Add UniqueConstraint to the Filter model (diff) | |
| parent | Merge pull request #740 from python-discord/update-django (diff) | |
Merge branch 'main' into new-filter-schema
Diffstat (limited to 'pydis_site/apps/content/views')
| -rw-r--r-- | pydis_site/apps/content/views/page_category.py | 4 |
1 files changed, 2 insertions, 2 deletions
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", "")) |