Reverted document.delete auto gridfs delete

This commit is contained in:
Ross Lawley
2012-05-14 12:02:07 +01:00
parent bc7e874476
commit bab186e195
5 changed files with 9 additions and 53 deletions

View File

@@ -2,6 +2,10 @@
Changelog
=========
Changes in 0.6.9
================
- Removed FileField auto deletion, needs more work maybe 0.7
Changes in 0.6.8
================
- Fixed FileField losing reference when no default set

View File

@@ -65,12 +65,13 @@ Deleting stored files is achieved with the :func:`delete` method::
marmot.photo.delete()
.. note::
.. warning::
The FileField in a Document actually only stores the ID of a file in a
separate GridFS collection. This means that `Animal.drop_collection()` will
not delete any files. Care should be taken to manually remove associated
files before dropping a collection.
separate GridFS collection. This means that deleting a document
with a defined FileField does not actually delete the file. You must be
careful to delete any files in a Document as above before deleting the
Document itself.
Replacing files