Skip to content
This repository


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fixed #18413 - Noted that a model's files are not deleted when the mo…

…del is deleted. Thanks lawgon for the report.
  • Loading branch information...
commit 1c03b23567a3098b9ab5df64b14e0dea8d1414ea 1 parent 8c42744
Tim Graham authored October 03, 2012

Showing 1 changed file with 5 additions and 0 deletions. Show diff stats Hide diff stats

  1. 5  docs/ref/models/fields.txt
5  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
668 668
 The optional ``save`` argument controls whether or not the instance is saved
669 669
 after the file has been deleted. Defaults to ``True``.
670 670
+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).
671 676
672 677
673 678

0 notes on commit 1c03b23

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