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/storage.txt | |
| parent | ef2f16bc4824ca2b10b7f2845baf4d313c9c0da1 (diff) | |
Refs #36485 -- Removed unnecessary parentheses in :meth: and :func: roles in docs.
Diffstat (limited to 'docs/ref/files/storage.txt')
| -rw-r--r-- | docs/ref/files/storage.txt | 4 |
1 files changed, 2 insertions, 2 deletions
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 |
