Re: Saving FileFields is not atomar

2007-02-28 Thread baumstanz
Okay I guess TransactionMiddleware should solve it. I've got another question: How can I create db entrys with ImageFields inside by myself without any forms? Say I've got image1 and want to create another entry with image1 in smaller size. - stanz --~--~-~--~~~---~

Saving FileFields is not atomar

2007-02-28 Thread baumstanz
Hi, I ran into two problems. First: How to save Files in a custom directory based on the filecontent? Second: How to let the Database ensure that all Filenames are unique? I've solved the first one by overriding the '_save_FIELD_file' - Method of my Model, which is not nice since I do some djang-