summaryrefslogtreecommitdiff
path: root/django
diff options
context:
space:
mode:
authorHasan Ramezani <hasan.r67@gmail.com>2021-01-12 11:22:13 +0100
committerGitHub <noreply@github.com>2021-01-12 11:22:13 +0100
commitba3fb2e4d0aca26f6ea37d7e31488ad09043f89d (patch)
tree2f73a1e3c208759b0235237a6ee29e59b34247e4 /django
parentfdc3d9dcaf87fb0a1350154561053faa331c3b69 (diff)
Refs #32311 -- Fixed CSRF_FAILURE_VIEW system check errors code.
Diffstat (limited to 'django')
-rw-r--r--django/core/checks/security/csrf.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/django/core/checks/security/csrf.py b/django/core/checks/security/csrf.py
index 758ff299e4..2b70d363e2 100644
--- a/django/core/checks/security/csrf.py
+++ b/django/core/checks/security/csrf.py
@@ -54,7 +54,7 @@ def check_csrf_failure_view(app_configs, **kwargs):
"The CSRF failure view '%s' could not be imported." %
settings.CSRF_FAILURE_VIEW
)
- errors.append(Error(msg, id='security.E025'))
+ errors.append(Error(msg, id='security.E102'))
else:
try:
inspect.signature(view).bind(None, reason=None)
@@ -63,5 +63,5 @@ def check_csrf_failure_view(app_configs, **kwargs):
"The CSRF failure view '%s' does not take the correct number of arguments." %
settings.CSRF_FAILURE_VIEW
)
- errors.append(Error(msg, id='security.E024'))
+ errors.append(Error(msg, id='security.E101'))
return errors