diff options
| author | David Smith <smithdc@gmail.com> | 2025-05-27 17:37:22 +0100 |
|---|---|---|
| committer | nessita <124304+nessita@users.noreply.github.com> | 2025-08-25 10:51:10 -0300 |
| commit | 6f8e23d1c10c7ce32cea82b65ad2af640015f147 (patch) | |
| tree | 692a42d2a3c54a6610b17cc14679734973d98d89 /docs/ref/files | |
| parent | ef2f16bc4824ca2b10b7f2845baf4d313c9c0da1 (diff) | |
Refs #36485 -- Removed unnecessary parentheses in :meth: and :func: roles in docs.
Diffstat (limited to 'docs/ref/files')
| -rw-r--r-- | docs/ref/files/file.txt | 2 | ||||
| -rw-r--r-- | docs/ref/files/storage.txt | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/docs/ref/files/file.txt b/docs/ref/files/file.txt index d0b0cdd786..23a3814f5d 100644 --- a/docs/ref/files/file.txt +++ b/docs/ref/files/file.txt @@ -50,7 +50,7 @@ The ``File`` class Open or reopen the file (which also does ``File.seek(0)``). The ``mode`` argument allows the same values - as Python's built-in :func:`python:open()`. ``*args`` and ``**kwargs`` + as Python's built-in :func:`python:open`. ``*args`` and ``**kwargs`` are passed after ``mode`` to Python's built-in :func:`python:open`. When reopening a file, ``mode`` will override whatever mode the file diff --git a/docs/ref/files/storage.txt b/docs/ref/files/storage.txt index 228025fe3a..85a1e3b926 100644 --- a/docs/ref/files/storage.txt +++ b/docs/ref/files/storage.txt @@ -201,12 +201,12 @@ The ``Storage`` class .. method:: generate_filename(filename) - Validates the ``filename`` by calling :attr:`get_valid_name()` and + Validates the ``filename`` by calling :attr:`get_valid_name` and returns a filename to be passed to the :meth:`save` method. The ``filename`` argument may include a path as returned by :attr:`FileField.upload_to <django.db.models.FileField.upload_to>`. - In that case, the path won't be passed to :attr:`get_valid_name()` but + In that case, the path won't be passed to :attr:`get_valid_name` but will be prepended back to the resulting name. The default implementation uses :mod:`os.path` operations. Override |
