浏览代码

Fixed comment in CsrfViewMiddleware to say _reject instead of reject.

Chris Jerdonek 3 年之前
父节点
当前提交
316cc34d04
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      django/middleware/csrf.py

+ 1 - 1
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