summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Jerdonek <chris.jerdonek@gmail.com>2021-06-12 07:15:06 -0700
committerCarlton Gibson <carlton@noumenal.es>2021-06-12 16:46:42 +0200
commit316cc34d046ad86e100227772294f906fae1c2e5 (patch)
tree77ad000436af15bbde49f25324132a51d6a43fc7
parent854e9b066850b9b4eb1171966e996322b2c16d27 (diff)
Fixed comment in CsrfViewMiddleware to say _reject instead of reject.
-rw-r--r--django/middleware/csrf.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/django/middleware/csrf.py b/django/middleware/csrf.py
index 5d77b19c7c..7ec3fdbecd 100644
--- a/django/middleware/csrf.py
+++ b/django/middleware/csrf.py
@@ -343,7 +343,7 @@ class CsrfViewMiddleware(MiddlewareMixin):
# Mechanism to turn off CSRF checks for test suite. It comes after
# the creation of CSRF cookies, so that everything else continues
# to work exactly the same (e.g. cookies are sent, etc.), but
- # before any branches that call reject().
+ # before any branches that call the _reject method.
return self._accept(request)
# Reject the request if the Origin header doesn't match an allowed