Ticket #15588: filefield_doc.diff
File filefield_doc.diff, 1.6 KB (added by , 14 years ago) |
---|
-
docs/releases/1.3.txt
359 359 mechanism mentioned above. This is backwards-incompatible for any 360 360 users relying on the prior ability to insert arbitrary lookups. 361 361 362 FileField no longer deletesfiles363 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 362 Deleting a model doesn't delete associated files 363 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 364 364 365 365 In earlier Django versions, when a model instance containing a 366 366 :class:`~django.db.models.FileField` was deleted, 367 367 :class:`~django.db.models.FileField` took it upon itself to also delete the 368 368 file from the backend storage. This opened the door to several data-loss 369 369 scenarios, including rolled-back transactions and fields on different models 370 referencing the same file. In Django 1.3, :class:`~django.db.models.FileField` 371 will never delete files from the backend storage. If you need cleanup of 372 orphaned files, you'll need to handle it yourself (for instance, with a custom 373 management command that can be run manually or scheduled to run periodically 374 via e.g. cron). 370 referencing the same file. In Django 1.3, when a model is deleted the 371 :class:`~django.db.models.FileField`'s 372 :func:`~django.db.models.FileField.delete` method won't be called. If you 373 need cleanup of orphaned files, you'll need to handle it yourself (for 374 instance, with a custom management command that can be run manually or 375 scheduled to run periodically via e.g. cron). 375 376 376 377 PasswordInput default rendering behavior 377 378 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~