summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam Johnson <me@adamj.eu>2023-05-18 18:17:21 +0100
committerGitHub <noreply@github.com>2023-05-18 14:17:21 -0300
commitfce90950bef348803fa7cc3e6bc65f4bce429b82 (patch)
treee13a0b29cc80203000470b826ff3cd2507417425
parent674c23999cb6982a9d447fedec4d72e135201fee (diff)
Refs 34343 -- Removed outdated comment about inline template from CSRF view file.
-rw-r--r--django/views/csrf.py8
1 files changed, 0 insertions, 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"