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/views | |
| parent | 1909108f9f0f2a91c1ec0fcdb65b01f58743a871 (diff) | |
Removed double spaces after periods and within phrases.
Diffstat (limited to 'django/views')
| -rw-r--r-- | django/views/decorators/csrf.py | 2 | ||||
| -rw-r--r-- | django/views/decorators/http.py | 2 | ||||
| -rw-r--r-- | django/views/generic/edit.py | 2 | ||||
| -rw-r--r-- | django/views/static.py | 4 |
4 files changed, 5 insertions, 5 deletions
diff --git a/django/views/decorators/csrf.py b/django/views/decorators/csrf.py index 4b8b8804b0..64c478b42e 100644 --- a/django/views/decorators/csrf.py +++ b/django/views/decorators/csrf.py @@ -9,7 +9,7 @@ csrf_protect = decorator_from_middleware(CsrfViewMiddleware) csrf_protect.__name__ = "csrf_protect" csrf_protect.__doc__ = """ This decorator adds CSRF protection in exactly the same way as -CsrfViewMiddleware, but it can be used on a per view basis. Using both, or +CsrfViewMiddleware, but it can be used on a per view basis. Using both, or using the decorator multiple times, is harmless and efficient. """ diff --git a/django/views/decorators/http.py b/django/views/decorators/http.py index efdaa21e30..408039937c 100644 --- a/django/views/decorators/http.py +++ b/django/views/decorators/http.py @@ -20,7 +20,7 @@ conditional_page = decorator_from_middleware(ConditionalGetMiddleware) def require_http_methods(request_method_list): """ - Decorator to make a view only accept particular request methods. Usage:: + Decorator to make a view only accept particular request methods. Usage:: @require_http_methods(["GET", "POST"]) def my_view(request): diff --git a/django/views/generic/edit.py b/django/views/generic/edit.py index ebd071cf00..d016b09634 100644 --- a/django/views/generic/edit.py +++ b/django/views/generic/edit.py @@ -123,7 +123,7 @@ class ModelFormMixin(FormMixin, SingleObjectMixin): url = self.object.get_absolute_url() except AttributeError: raise ImproperlyConfigured( - "No URL to redirect to. Either provide a url or define" + "No URL to redirect to. Either provide a url or define" " a get_absolute_url method on the Model." ) return url diff --git a/django/views/static.py b/django/views/static.py index b24f0e30f9..0a583a7405 100644 --- a/django/views/static.py +++ b/django/views/static.py @@ -37,7 +37,7 @@ def serve(request, path, document_root=None, show_indexes=False): in your URLconf. You must provide the ``document_root`` param. You may also set ``show_indexes`` to ``True`` if you'd like to serve a basic index - of the directory. This index view will use the template hardcoded below, + of the directory. This index view will use the template hardcoded below, but if you'd like to override it, you can create a template called ``static/directory_index.html``. """ @@ -105,7 +105,7 @@ def was_modified_since(header=None, mtime=0): Was something modified since the user last downloaded it? header - This is the value of the If-Modified-Since header. If this is None, + This is the value of the If-Modified-Since header. If this is None, I'll just return True. mtime |
