summaryrefslogtreecommitdiff
path: root/docs/ref
diff options
context:
space:
mode:
Diffstat (limited to 'docs/ref')
-rw-r--r--docs/ref/models/fields.txt9
1 files changed, 7 insertions, 2 deletions
diff --git a/docs/ref/models/fields.txt b/docs/ref/models/fields.txt
index 7c5401046b..7ca0b96d85 100644
--- a/docs/ref/models/fields.txt
+++ b/docs/ref/models/fields.txt
@@ -822,8 +822,13 @@ Has two optional arguments:
.. attribute:: FileField.storage
- A storage object, which handles the storage and retrieval of your
- files. See :doc:`/topics/files` for details on how to provide this object.
+ A storage object, or a callable which returns a storage object. This
+ handles the storage and retrieval of your files. See :doc:`/topics/files`
+ for details on how to provide this object.
+
+ .. versionchanged:: 3.1
+
+ The ability to provide a callable was added.
The default form widget for this field is a
:class:`~django.forms.ClearableFileInput`.