tickets: 8641
This data as json
id | created | changetime | last_pulled_from_trac | stage | status | component | type | severity | version | resolution | summary | description | owner | reporter | keywords | easy | has_patch | needs_better_patch | needs_tests | needs_docs | ui_ux |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
8641 | 2008-08-28 13:52:05 | 2011-09-28 16:12:17 | 2022-03-06 03:42:47.363465 | Accepted | closed | Documentation | dev | fixed | File.save documentation does not mention that contents must be a Django file object | The documentation for the revised FileField (http://www.djangoproject.com/documentation/files/) documents the replacement for {{{save_FOO_file}}}, {{{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 {{{chunks}}} attribute). The documentation makes no mention of this. | nobody | pauldwaite | 0 | 1 | 0 | 0 | 0 | 0 |