diff options
Diffstat (limited to 'django/core/checks/security/csrf.py')
| -rw-r--r-- | django/core/checks/security/csrf.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/django/core/checks/security/csrf.py b/django/core/checks/security/csrf.py index d00f2259c6..51be377f48 100644 --- a/django/core/checks/security/csrf.py +++ b/django/core/checks/security/csrf.py @@ -1,6 +1,5 @@ -import inspect - from django.conf import settings +from django.utils.inspect import signature from .. import Error, Tags, Warning, register @@ -57,7 +56,7 @@ def check_csrf_failure_view(app_configs, **kwargs): errors.append(Error(msg, id="security.E102")) else: try: - inspect.signature(view).bind(None, reason=None) + signature(view).bind(None, reason=None) except TypeError: msg = ( "The CSRF failure view '%s' does not take the correct number of " |
