From 2b443cb6c2d55669b20019f2755c0711c3d23050 Mon Sep 17 00:00:00 2001 From: Hasan Ramezani Date: Thu, 7 Jan 2021 12:51:59 +0100 Subject: [PATCH] [3.1.x] Fixed #32315 -- Doc'd FieldFile.path. Backport of 3eb98743dcaa0b7abd2d5832cba8cc9cb586a964 from master --- docs/ref/models/fields.txt | 6 ++++++ 1 file changed, 6 insertions(+) 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()