diff options
| author | Hasan Ramezani <hasan.r67@gmail.com> | 2021-01-07 12:51:59 +0100 |
|---|---|---|
| committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2021-01-07 12:53:04 +0100 |
| commit | 2b443cb6c2d55669b20019f2755c0711c3d23050 (patch) | |
| tree | b046eb68641d4c88ef957632fb91950b5d0c6701 | |
| parent | 6d3a623f713cbe0c64235458f44a1fe3a74108f8 (diff) | |
[3.1.x] Fixed #32315 -- Doc'd FieldFile.path.
Backport of 3eb98743dcaa0b7abd2d5832cba8cc9cb586a964 from master
| -rw-r--r-- | docs/ref/models/fields.txt | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/docs/ref/models/fields.txt b/docs/ref/models/fields.txt index f20e92772b..b9e5ac27e1 100644 --- a/docs/ref/models/fields.txt +++ b/docs/ref/models/fields.txt @@ -929,6 +929,12 @@ The name of the file including the relative path from the root of the :class:`~django.core.files.storage.Storage` of the associated :class:`~django.db.models.FileField`. +.. attribute:: FieldFile.path + +A read-only property to access the file's local filesystem path by calling the +:meth:`~django.core.files.storage.Storage.path` method of the underlying +:class:`~django.core.files.storage.Storage` class. + .. attribute:: FieldFile.size The result of the underlying :attr:`Storage.size() |
