mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2024-11-22 17:41:08 +00:00
make naming consistent
This commit is contained in:
parent
d620bd7350
commit
8ddafafa84
3 changed files with 3 additions and 3 deletions
|
@ -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"
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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")
|
Loading…
Reference in a new issue