make naming consistent

This commit is contained in:
Hugh Rundle 2023-11-18 12:40:36 +11:00
parent d620bd7350
commit 8ddafafa84
No known key found for this signature in database
GPG key ID: A7E35779918253F9
3 changed files with 3 additions and 3 deletions

View file

@ -794,4 +794,4 @@ urlpatterns.extend(staticfiles_urlpatterns())
handler500 = "bookwyrm.views.server_error"
# pylint: disable=invalid-name
handler403 = "bookwyrm.views.permission_required"
handler403 = "bookwyrm.views.permission_denied"

View file

@ -167,4 +167,4 @@ from .annual_summary import (
summary_revoke_key,
)
from .server_error import server_error
from .permission_required import permission_required
from .permission_denied import permission_denied

View file

@ -2,7 +2,7 @@
from django.template.response import TemplateResponse
def permission_required(request, exception): # pylint: disable=unused-argument
def permission_denied(request, exception): # pylint: disable=unused-argument
"""permission denied page"""
return TemplateResponse(request, "403.html")