Opened 8 years ago

Closed 8 years ago

#9013 closed (duplicate)

Filestorage and save=False/commit=False

Reported by: shadfc Owned by: nobody
Component: Uncategorized Version: 1.0
Severity: Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:

Description

In FieldFile.save(), the storage.save() is called regardless of the save argument.

I need to be able edit the data uploaded to a FileField before the storage backend gets called to save the file, but this isn't possible. As it stands, to make this work, the files get saved with formset.save(commit=False) is called, and then I must manually call the storage.save() to save the updated data to the same on the backend.

There is some discussion on the django-developers list about this. Follow at http://groups.google.com/group/django-developers/browse_thread/thread/e2057d165c3a0c12

Change History (1)

comment:1 Changed 8 years ago by shadfc

Needs documentation: unset
Needs tests: unset
Patch needs improvement: unset
Resolution: duplicate
Status: newclosed
Note: See TracTickets for help on using tickets.
Back to Top