From fce90950bef348803fa7cc3e6bc65f4bce429b82 Mon Sep 17 00:00:00 2001 From: Adam Johnson Date: Thu, 18 May 2023 18:17:21 +0100 Subject: [PATCH] Refs 34343 -- Removed outdated comment about inline template from CSRF view file. --- django/views/csrf.py | 8 -------- 1 file changed, 8 deletions(-) diff --git a/django/views/csrf.py b/django/views/csrf.py index 1b34adbe4b..3c572a621a 100644 --- a/django/views/csrf.py +++ b/django/views/csrf.py @@ -6,14 +6,6 @@ from django.template import Context, Engine, TemplateDoesNotExist, loader from django.utils.translation import gettext as _ from django.utils.version import get_docs_version -# We include the template inline since we need to be able to reliably display -# this error message, especially for the sake of developers, and there isn't any -# other way of making it available independent of what is in the settings file. - -# Only the text appearing with DEBUG=False is translated. Normal translation -# tags cannot be used with this inline templates as makemessages would not be -# able to discover the strings. - CSRF_FAILURE_TEMPLATE_NAME = "403_csrf.html"