diff options
| author | Sarah Boyce <42296566+sarahboyce@users.noreply.github.com> | 2025-07-18 15:37:14 +0200 |
|---|---|---|
| committer | nessita <124304+nessita@users.noreply.github.com> | 2025-07-23 10:09:43 -0300 |
| commit | 1ecf6889cabc9f3f60d3fdd651468cddd8f4da6e (patch) | |
| tree | 77eebf89eaf5f1ee6f5947a962caa67b5cca7f4b /django/middleware | |
| parent | 1909108f9f0f2a91c1ec0fcdb65b01f58743a871 (diff) | |
Removed double spaces after periods and within phrases.
Diffstat (limited to 'django/middleware')
| -rw-r--r-- | django/middleware/csrf.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/django/middleware/csrf.py b/django/middleware/csrf.py index 5ae1aae5c6..2e4b30ed54 100644 --- a/django/middleware/csrf.py +++ b/django/middleware/csrf.py @@ -100,7 +100,7 @@ def get_token(request): A side effect of calling this function is to make the csrf_protect decorator and the CsrfViewMiddleware add a CSRF cookie and a 'Vary: Cookie' - header to the outgoing response. For this reason, you may need to use this + header to the outgoing response. For this reason, you may need to use this function lazily, as is done by the csrf context processor. """ if "CSRF_COOKIE" in request.META: @@ -201,7 +201,7 @@ class CsrfViewMiddleware(MiddlewareMixin): # requires_csrf_token decorator. def _accept(self, request): # Avoid checking the request twice by adding a custom attribute to - # request. This will be relevant when both decorator and middleware + # request. This will be relevant when both decorator and middleware # are used. request.csrf_processing_done = True return None |
