summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorTim Graham <timograham@gmail.com>2012-10-03 06:58:16 -0400
committerTim Graham <timograham@gmail.com>2012-10-03 17:44:14 -0400
commitb1462e0a36bc6bb2c221bda107da74a6381b9675 (patch)
tree1262cedcc75612e8ad31c7fb31db663146b84023 /docs
parentcf482d6e2a322a8c84570ae282b774fa09491c98 (diff)
[1.4.X] Fixed #18413 - Noted that a model's files are not deleted when the model is deleted. Thanks lawgon for the report.
Backport of 1c03b23567 from master
Diffstat (limited to 'docs')
-rw-r--r--docs/ref/models/fields.txt5
1 files changed, 5 insertions, 0 deletions
diff --git a/docs/ref/models/fields.txt b/docs/ref/models/fields.txt
index cca6ec51dc..c8b9db33f6 100644
--- a/docs/ref/models/fields.txt
+++ b/docs/ref/models/fields.txt
@@ -672,6 +672,11 @@ the field. Note: This method will close the file if it happens to be open when
The optional ``save`` argument controls whether or not the instance is saved
after the file has been deleted. Defaults to ``True``.
+Note that when a model is deleted, related files are not deleted. If you need
+to cleanup orphaned files, you'll need to handle it yourself (for instance,
+with a custom management command that can be run manually or scheduled to run
+periodically via e.g. cron).
+
``FilePathField``
-----------------