summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorChris Beaven <smileychris@gmail.com>2011-05-10 00:20:21 +0000
committerChris Beaven <smileychris@gmail.com>2011-05-10 00:20:21 +0000
commit4cb2b53c222a8b02941d7bd32f012e62c1acd94f (patch)
tree8a18ed284c97eca795c9106602f448d0b6eceb36 /docs
parentfda65ffea57bf6f15a94f37c4ab74352f679e282 (diff)
[1.3.X] Fixes #15588 -- 1.3 release documentation for FileField no longer deleting files unclear. Thanks for the patch, Philip Neustrom.
Backport of r16205 from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.3.X@16206 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'docs')
-rw-r--r--docs/releases/1.3.txt15
1 files changed, 8 insertions, 7 deletions
diff --git a/docs/releases/1.3.txt b/docs/releases/1.3.txt
index 598f741387..64026ba82e 100644
--- a/docs/releases/1.3.txt
+++ b/docs/releases/1.3.txt
@@ -358,19 +358,20 @@ issues`_ reported to us, however, query string lookup arguments in the
admin must be for fields or relations specified in ``list_filter`` or
``date_hierarchy``.
-FileField no longer deletes files
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+Deleting a model doesn't delete associated 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).
+referencing the same file. In Django 1.3, when a model is deleted the
+:class:`~django.db.models.FileField`'s
+:func:`~django.db.models.FileField.delete` method won't be called. 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
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~