File.save documentation does not mention that contents must be a Django file object
|Reported by:||pauldwaite||Owned by:||nobody|
|Has patch:||yes||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
The documentation for the revised FileField (http://www.djangoproject.com/documentation/files/) documents the replacement for
File.save(name, content, save=True).
However, as far as I can tell from testing Beta 2, the content to be saved can no longer be a string. It must be an instance of the new Django File class (or at least an object that has a
The documentation makes no mention of this.
Change History (9)
comment:1 Changed 8 years ago by
|Patch needs improvement:||unset|