summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorCarl Meyer <carl@oddbird.net>2011-01-26 07:46:19 +0000
committerCarl Meyer <carl@oddbird.net>2011-01-26 07:46:19 +0000
commit00e7a571c5737c69bc225ae39d3dca6d0fbfd072 (patch)
tree1d0808d05eeb32ccfa4e7d6558d284d5fb947551 /docs
parent80287f1e8a554290faa6a0c31113a9f4eecf7b79 (diff)
Fixed #6456 - Excised FileField file deletion to avoid data loss. Thanks to durdinator for the report.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@15321 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'docs')
-rw-r--r--docs/releases/1.3.txt14
1 files changed, 14 insertions, 0 deletions
diff --git a/docs/releases/1.3.txt b/docs/releases/1.3.txt
index 89e8b58585..1ca89380f7 100644
--- a/docs/releases/1.3.txt
+++ b/docs/releases/1.3.txt
@@ -261,6 +261,20 @@ requests. These include:
Backwards-incompatible changes in 1.3
=====================================
+FileField no longer deletes files
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+
+In earlier Django versions, when a model instance containing a
+:class:`~django.db.models.FileField` was deleted,
+:class:`~django.db.models.FileField` took it upon itself to also delete the
+file from the backend storage. This opened the door to several data-loss
+scenarios, including rolled-back transactions and fields on different models
+referencing the same file. In Django 1.3, :class:`~django.db.models.FileField`
+will never delete files from the backend storage. If you need cleanup of
+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).
+
PasswordInput default rendering behavior
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~