Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
AE UTBM
Sith
Commits
00bd60ef
Verified
Commit
00bd60ef
authored
Oct 06, 2019
by
Sli
Browse files
django2.2: add exception parameter in forbidden and not_found views
parent
b8c7fb6f
Changes
1
Hide whitespace changes
Inline
Side-by-side
core/views/__init__.py
View file @
00bd60ef
...
...
@@ -48,7 +48,7 @@ from core.models import Group
from
core.views.forms
import
LoginForm
def
forbidden
(
request
):
def
forbidden
(
request
,
exception
):
try
:
return
HttpResponseForbidden
(
render
(
...
...
@@ -71,7 +71,7 @@ def forbidden(request):
)
def
not_found
(
request
):
def
not_found
(
request
,
exception
):
return
HttpResponseNotFound
(
render
(
request
,
"core/404.jinja"
))
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment