浏览代码

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

Hasan Ramezani 4 年之前
父节点
当前提交
3eb98743dc
共有 1 个文件被更改,包括 6 次插入0 次删除
  1. 6 0
      docs/ref/models/fields.txt

+ 6 - 0
docs/ref/models/fields.txt

@@ -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()