diff options
| author | Prakhar <forestlaw319@gmail.com> | 2023-11-02 15:12:53 +0530 |
|---|---|---|
| committer | Natalia <124304+nessita@users.noreply.github.com> | 2023-11-07 09:09:39 -0300 |
| commit | 535f7b5c6cea54a0796d85bbe213183d50002689 (patch) | |
| tree | c9c1b09231075379b81575abfe7ec8f50afaacf9 /django/views | |
| parent | 8a28e983df091d94eaba77cb82fbe3ef60a80799 (diff) | |
Fixed #34830 -- Added request to csrf_failure view's template context.
Co-authored-by: nessita <124304+nessita@users.noreply.github.com>
Diffstat (limited to 'django/views')
| -rw-r--r-- | django/views/csrf.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/django/views/csrf.py b/django/views/csrf.py index 3c572a621a..e282ebb2b6 100644 --- a/django/views/csrf.py +++ b/django/views/csrf.py @@ -64,6 +64,7 @@ def csrf_failure(request, reason="", template_name=CSRF_FAILURE_TEMPLATE_NAME): "DEBUG": settings.DEBUG, "docs_version": get_docs_version(), "more": _("More information is available with DEBUG=True."), + "request": request, } try: t = loader.get_template(template_name) |
