Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Browse files

[1.4.X] Fixed #18413 - Noted that a model's files are not deleted whe…

…n the model is deleted. Thanks lawgon for the report.

Backport of 1c03b23 from master
  • Loading branch information...
commit b1462e0a36bc6bb2c221bda107da74a6381b9675 1 parent cf482d6
@timgraham timgraham authored
Showing with 5 additions and 0 deletions.
  1. +5 −0 docs/ref/models/fields.txt
5 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).

0 comments on commit b1462e0

Please sign in to comment.
Something went wrong with that request. Please try again.