1
0
mirror of https://github.com/django/django.git synced 2024-12-23 01:25:58 +00:00

Fixed #32315 -- Doc'd FieldFile.path.

This commit is contained in:
Hasan Ramezani 2021-01-07 12:51:59 +01:00 committed by GitHub
parent 0a802233ec
commit 3eb98743dc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -945,6 +945,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()