file lost when transaction was rollbacked
|Reported by:||liangent||Owned by:||nobody|
|Has patch:||no||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
create a model with a FileField, start a transaction, delete an object of this model, although the record in database is kept, the file is lost.
i think django should delete files in FileFields only when the transaction was committed successfully.