diff options
| author | Tim Graham <timograham@gmail.com> | 2012-10-03 06:58:16 -0400 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2012-10-03 17:43:23 -0400 |
| commit | 1c03b23567a3098b9ab5df64b14e0dea8d1414ea (patch) | |
| tree | 3ba7f07eb5b2f568cbaacf7fb9f9984d0b130aec /docs | |
| parent | 8c427448d53ec0d860e1669f35deed73d0240ba1 (diff) | |
Fixed #18413 - Noted that a model's files are not deleted when the model is deleted. Thanks lawgon for the report.
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/ref/models/fields.txt | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/docs/ref/models/fields.txt b/docs/ref/models/fields.txt index 4797e8b26b..02d8453b83 100644 --- a/docs/ref/models/fields.txt +++ b/docs/ref/models/fields.txt @@ -668,6 +668,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`` ----------------- |
