From 97c5b957dda048726cec4d86551532eacf7f271b Mon Sep 17 00:00:00 2001 From: Ross Lawley Date: Wed, 9 May 2012 11:39:30 +0100 Subject: [PATCH] Updated docs regarding GridFS refs #492 --- AUTHORS | 3 ++- docs/changelog.rst | 2 ++ docs/guide/gridfs.rst | 7 +++---- 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/AUTHORS b/AUTHORS index fc28b266..2a91373a 100644 --- a/AUTHORS +++ b/AUTHORS @@ -103,4 +103,5 @@ that much better: * Greg Banks * swashbuckler * Adam Reeve - * Anthony Nemitz \ No newline at end of file + * Anthony Nemitz + * deignacio \ No newline at end of file diff --git a/docs/changelog.rst b/docs/changelog.rst index a4186461..030266a7 100644 --- a/docs/changelog.rst +++ b/docs/changelog.rst @@ -4,6 +4,8 @@ Changelog Changes in 0.6.X ================ +- FileField now automatically delete files on .delete() +- Fix for GenericReference to_mongo method - Fixed connection regression - Django User document allows inheritance diff --git a/docs/guide/gridfs.rst b/docs/guide/gridfs.rst index 3abad775..695a0be0 100644 --- a/docs/guide/gridfs.rst +++ b/docs/guide/gridfs.rst @@ -68,10 +68,9 @@ Deleting stored files is achieved with the :func:`delete` method:: .. note:: The FileField in a Document actually only stores the ID of a file in a - 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. + 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. Replacing files